Compile Error
[1 of 1] Compiling Main ( /in/foo.hs, /tmp/Main.o ) /in/foo.hs:7:32: error: * Couldn't match type `()' with `IO b' Expected type: [()] -> IO b Actual type: [()] -> () * In the second argument of `(>>=)', namely `return ()' In the expression: forM p3 print >>= return () In the expression: let p1 = primesBounded n p2 = dropWhile (< m) p1 p3 = filter isPalindromic p2 in forM p3 print >>= return () * Relevant bindings include main :: IO (IO b) (bound at /in/foo.hs:3:1)
信息
- 递交者
- 类型
- 自测
- 题目
- P1042 捕风捉影
- 语言
- Haskell
- 递交时间
- 2018-11-02 15:38:15
- 评测时间
- 2018-11-02 15:38:15
- 评测机
- 分数
- 0
- 总耗时
- 310ms
- 峰值内存
- 43.949 MiB