Submission #161746
Source Code Expand
main = do x <- getContents print $ (x-1 :: Integer)
Submission Info
Submission Time | |
---|---|
Task | A - 植木算 |
User | phi16 |
Language | Haskell (GHC 7.4.1) |
Score | 0 |
Code Size | 57 Byte |
Status | CE |
Compile Error
Main.hs:3:12: Couldn't match expected type `Integer' with actual type `String' In the first argument of `(-)', namely `x' In the second argument of `($)', namely `(x - 1 :: Integer)' In a stmt of a 'do' block: print $ (x - 1 :: Integer)