Job 19703

Owner
Lucian Bicsi
Problem
AndInt
Source
0.46KB
Result
Accepted

Compiler output

[1 of 1] Compiling Main             ( prog.hs, prog.o )

prog.hs:1:1: Warning:
    Top-level binding with no type signature:
      solve :: forall a. Integral a => [a] -> a

prog.hs:1:1: Warning:
    Pattern match(es) are non-exhaustive
    In an equation for `solve':
        Patterns not matched:
            []
            [_]
            _ : (_ : (_ : _))

prog.hs:1:57: Warning:
    Defaulting the following constraint(s) to type `Integer'
      (Integral b0) arising from a use of `^' at prog.hs:1:57
      (Num b0) arising from the literal `9' at prog.hs:1:58
    In the first argument of `(+)', namely `10 ^ 9'
    In the second argument of `mod', namely `(10 ^ 9 + 7)'
    In the expression:
      (sum $ map subsequences deltas) `mod` (10 ^ 9 + 7)

prog.hs:5:37: Warning:
    Defaulting the following constraint(s) to type `Integer'
      (Enum a0)
        arising from the arithmetic sequence `1 .. ' at prog.hs:5:37-41
      (Integral a0) arising from a use of `^' at prog.hs:5:34
      (Num a0) arising from the literal `1' at prog.hs:5:38
    In the second argument of `map', namely `[1 .. ]'
    In the expression: map (2 ^) [1 .. ]
    In an equation for `powers': powers = map (2 ^) [1 .. ]

prog.hs:7:1: Warning:
    Top-level binding with no type signature: main :: IO [()]

prog.hs:10:29: Warning:
    Defaulting the following constraint(s) to type `Integer'
      (Integral b0) arising from a use of `solve' at prog.hs:10:29-33
      (Read b0) arising from a use of `read' at prog.hs:9:29-32
      (Show b0) arising from a use of `print' at prog.hs:10:21-25
    In the second argument of `(.)', namely `solve'
    In the first argument of `map', namely `(print . solve)'
    In the second argument of `($)', namely
      `map (print . solve) queries'
You are using a new version of LLVM that hasn't been tested yet!
We will try though...
Linking prog ...

Results

Test numberResultTime
1Ok0.2364s
2Ok0.2367s
3Ok0.2350s
4Ok0.2346s
Questions?

Sponsors Gold