我似乎无法提交文件中的一小部分更改,它似乎是所有文件或什么都没有,我正在使用Git与Intellij,是否可能?
谢谢.
我还没有创建一个程序来查看GCC是否需要它通过,当我这样做时,我想知道如何启用严格的浮点模式,这将允许运行和计算机之间的可重现结果,谢谢.
我坚持这个问题而且我对Haskell很新,我试图用以下代码完成第一个Euler问题:
main = putStrLn . show . sum $ [3,6..1000]:[5,10..1000]
Run Code Online (Sandbox Code Playgroud)
这是错误的第一部分:
euler/1.hs:1:19:
No instance for (Show t0) arising from a use of `show'
The type variable `t0' is ambiguous
Possible fix: add a type signature that fixes these type variable(s)
Note: there are several potential instances:
instance Show Double -- Defined in `GHC.Float'
instance Show Float -- Defined in `GHC.Float'
instance (Integral a, Show a) => Show (GHC.Real.Ratio a)
-- Defined in `GHC.Real'
...plus 23 others
In the first argument …Run Code Online (Sandbox Code Playgroud)