Submission #44653
ソースコード
ステータス
| 項目 |
データ |
| 問題 |
0238 - ナップザック問題(Easy) |
| ユーザー名 |
kgtkr
|
| 投稿日時 |
2018-11-08 19:39:20 |
| 言語 |
Haskell |
| 状態 |
Compile Error |
| 得点 |
0
|
| ソースコード長 |
896 Byte |
| 最大実行時間 |
-
|
| 最大メモリ使用量 |
|
コンパイルメッセージ
[1 of 1] Compiling Main ( ./Main.hs, ./Main.o )
./Main.hs:19:5:
No instance for (Applicative (ST s))
arising from a use of `f'
Possible fix: add an instance declaration for (Applicative (ST s))
In the expression: f arr 0 r list
In the second argument of `($)', namely
`do { arr <- newArray ((0, 0), (100, 10000)) (- 1) ::
ST s (STArray s (Int, Int) Int);
f arr 0 r list }'
In the expression:
runST
$ do { arr <- newArray ((0, 0), (100, 10000)) (- 1) ::
ST s (STArray s (Int, Int) Int);
f arr 0 r list }
セット
テストケース