Haskell – SPOJ – Code 'TEST' -
i trying solve first spoj-problem in haskell, end having parse error on input if
. common problem?
main = input <- getline if input == "42" putstr "" else putstrln input main
i once had same problem solving spoj problems. editor mixes tabs , spaces. try use spaces , work fine.
Comments
Post a Comment