Compile Error
[1 of 1] Compiling Main ( /in/foo.hs, /tmp/Main.o )
/in/foo.hs:6:41: error:
* Couldn't match type `Integer'
with `(a0 -> a0 -> a0) -> Integer -> Integer'
Expected type: [(a0 -> a0 -> a0) -> Integer -> Integer]
Actual type: [Integer]
* In the second argument of `map', namely `(list a b)'
In the second argument of `(:)', namely
`map (\ x -> (x * x) mod b) (list a b)'
In the expression: a : map (\ x -> (x * x) mod b) (list a b)
信息
- 递交者
- 类型
- 自测
- 题目
- P1032 循环
- 语言
- Haskell
- 递交时间
- 2018-02-24 10:15:12
- 评测时间
- 2018-02-24 10:15:12
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes