Submission #28461


ソースコード

ステータス

項目 データ
問題 0238 - ナップザック問題(Easy)
ユーザー名 ei1729
投稿日時 2017-11-09 16:34:37
言語 C++11
状態 Compile Error
得点 0
ソースコード長 622 Byte
最大実行時間 -
最大メモリ使用量

コンパイルメッセージ

./Main.cpp: In function ‘int dfs(int, int)’:
./Main.cpp:20:6: error: ‘mem’ was not declared in this scope
   if(mem[now][w]!=-1) return mem[now][w];
      ^~~
./Main.cpp:20:6: note: suggested alternative: ‘memo’
   if(mem[now][w]!=-1) return mem[now][w];
      ^~~
      memo
./Main.cpp:30:10: error: ‘mem’ was not declared in this scope
   return mem[now][w]=ret;
          ^~~
./Main.cpp:30:10: note: suggested alternative: ‘memo’
   return mem[now][w]=ret;
          ^~~
          memo

セット

セット 得点 Cases

テストケース

ファイル名 状態 実行時間 メモリ使用量 #