Submission #46585
ソースコード
ステータス
| 項目 |
データ |
| 問題 |
0238 - ナップザック問題(Easy) |
| ユーザー名 |
紙ペーパー
|
| 投稿日時 |
2019-01-17 14:00:33 |
| 言語 |
C++11 |
| 状態 |
Compile Error |
| 得点 |
0
|
| ソースコード長 |
658 Byte |
| 最大実行時間 |
-
|
| 最大メモリ使用量 |
|
コンパイルメッセージ
./Main.cpp:1:1: error: ‘include’ does not name a type
include<iostream>
^~~~~~~
./Main.cpp:12:23: error: ISO C++ forbids declaration of ‘slv’ with no type [-fpermissive]
slv(int now,int weight){
^
./Main.cpp: In function ‘int main()’:
./Main.cpp:33:9: error: ‘cin’ was not declared in this scope
cin >> N >> W;
^~~
./Main.cpp:33:9: note: suggested alternative: ‘main’
cin >> N >> W;
^~~
main
./Main.cpp:52:9: error: ‘cout’ was not declared in this scope
cout << mx << endl;
^~~~
./Main.cpp:52:23: error: ‘endl’ was not declared in this scope
cout << mx << endl;
^~~~
./Main.cpp:52:23: note: suggested alternative: ‘enum’
cout << mx << endl;
^~~~
enum
セット
テストケース