Submission #1520491
Source Code Expand
main = interact $ show . maximum . map read . words
Submission Info
Submission Time | |
---|---|
Task | A - 正直者 |
User | Gash788 |
Language | Haskell (GHC 7.10.3) |
Score | 0 |
Code Size | 51 Byte |
Status | CE |
Compile Error
Main.hs:1:19: No instance for (Show a0) arising from a use of ‘show’ The type variable ‘a0’ is ambiguous Note: there are several potential instances: instance (Show a, Show b) => Show (Either a b) -- Defined in ‘Data.Either’ instance forall (k :: BOX) (s :: k). Show (Data.Proxy.Proxy s) -- Defined in ‘Data.Proxy’ instance (GHC.Arr.Ix a, Show a, Show b) => Show (GHC.Arr.Array a b) -- Defined in ‘GHC.Arr’ ...plus 28 others In the first argument of ‘(.)’, namely ‘show’ In the second argument of ‘($)’, namely ‘show . maximum . map read . words’ In the expression: interact $ show . maximum . map read . words Main.hs:1:26: No instance for (Ord a0) arising from a use of ‘maximum’ The type variable ‘a0’ is ambiguous Note: there are several potential instances: instance (Ord a, Ord b) => Ord (Either a b) -- Defined in ‘Data.Either’ instance forall (k :: BOX) (s :: k). Ord (Data.Proxy.Proxy s) -- Defi...