Skip to content

Instantly share code, notes, and snippets.

View vivax3794's full-sized avatar
🏳️‍🌈
being gay doing crime

vivax vivax3794

🏳️‍🌈
being gay doing crime
View GitHub Profile
use std::io;
macro_rules! parse_input {
($x:expr, $t:ident) => ($x.trim().parse::<$t>().unwrap())
}
/**
* Auto-generated code below aims at helping you parse
* the standard input according to the problem statement.
**/
@vivax3794
vivax3794 / error
Created March 26, 2020 15:52
haskell cant get it to work...
test.hs:6:60: error:
• Couldn't match expected type ‘a1’ with actual type ‘a2’
‘a2’ is a rigid type variable bound by
the type signature for:
isPrimeHelper :: forall a2. Integral a2 => a2 -> Bool
at test.hs:5:29-68
‘a1’ is a rigid type variable bound by
the type signature for:
isPrime :: forall a1. Integral a1 => a1 -> Bool
at test.hs:3:15-48