/ Vijos /

记录详情

Compile Error

[1 of 1] Compiling Main             ( /in/foo.hs, /tmp/Main.o )

/in/foo.hs:5:14: error:
    Variable not in scope: forM :: [Integer] -> (a1 -> IO ()) -> m a0

/in/foo.hs:5:32: error:
    * Couldn't match type `()' with `m b'
      Expected type: a0 -> m b
        Actual type: a0 -> ()
    * 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 (m b) (bound at /in/foo.hs:1:1)

信息

递交者
类型
自测
题目
P1042 捕风捉影
语言
Haskell
递交时间
2018-11-02 15:37:29
评测时间
2018-11-02 15:37:29
评测机
分数
0
总耗时
279ms
峰值内存
43.32 MiB