Submission #187315
Source Code Expand
main = do n <- readLn print $ if n == 12 then "1" else n+1
Submission Info
Submission Time | |
---|---|
Task | A - 来月は何月? |
User | maeken2010 |
Language | Haskell (GHC 7.4.1) |
Score | 0 |
Code Size | 64 Byte |
Status | CE |
Compile Error
Main.hs:3:19: No instance for (Num [Char]) arising from the literal `12' Possible fix: add an instance declaration for (Num [Char]) In the second argument of `(==)', namely `12' In the expression: n == 12 In the second argument of `($)', namely `if n == 12 then "1" else n + 1'