🏳️🌈
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | |
**/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |