Compile Error
[1 of 1] Compiling Main ( /in/foo.hs, /tmp/Main.o ) /in/foo.hs:3:16: error: * Couldn't match type `Int' with `[Char]' Expected type: String Actual type: Int * In the second argument of `($)', namely `sum li' In a stmt of a 'do' block: putStrLn $ sum li In the expression: do { li <- (map read . words) `fmap` getLine :: IO [Int]; putStrLn $ sum li }
信息
- 递交者
- 类型
- 递交
- 题目
- P1000 a+b
- 语言
- Haskell
- 递交时间
- 2020-07-21 17:17:42
- 评测时间
- 2020-07-21 17:17:42
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes