/ Haskell /

记录详情

Compile Error

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

/in/foo.hs:3:16: error:
    * No instance for (Num String) arising from a use of `sum'
    * 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;
             putStrLn $ sum li }

信息

递交者
类型
递交
题目
P1000 a+b
语言
Haskell
递交时间
2020-07-21 17:15:11
评测时间
2020-07-21 17:15:11
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes