Submission #45106


ソースコード

ステータス

項目 データ
問題 0238 - ナップザック問題(Easy)
ユーザー名 卒業済みr1807
投稿日時 2018-11-17 12:03:49
言語 C++
状態 Compile Error
得点 0
ソースコード長 623 Byte
最大実行時間 -
最大メモリ使用量

コンパイルメッセージ

./Main.cpp: In function ‘int main()’:
./Main.cpp:30:5: error: ‘memset’ was not declared in this scope
     memset(dp, -1, sizeof(dp));
     ^~~~~~
./Main.cpp:30:5: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
./Main.cpp:3:1:
+#include <cstring>
 using namespace std;
./Main.cpp:30:5:
     memset(dp, -1, sizeof(dp));
     ^~~~~~
./Main.cpp:38:15: error: expected ‘}’ at end of input
     return (0);
               ^
./Main.cpp:29:1: note: to match this ‘{’
 {
 ^

セット

セット 得点 Cases

テストケース

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