Submission #50191
ソースコード
ステータス
項目 |
データ |
問題 |
0957 - 9月X日 |
ユーザー名 |
ei1903
|
投稿日時 |
2019-06-05 18:30:40 |
言語 |
C++ |
状態 |
Compile Error |
得点 |
0
|
ソースコード長 |
207 Byte |
最大実行時間 |
-
|
最大メモリ使用量 |
|
コンパイルメッセージ
./Main.cpp:1:1: error: ‘include’ does not name a type
include<iostream>
^~~~~~~
./Main.cpp: In function ‘int main()’:
./Main.cpp:5:3: error: ‘string’ was not declared in this scope
string n[]={"mon","tue","wed","thu","fri","sat","sun"};
^~~~~~
./Main.cpp:5:3: note: suggested alternative: ‘struct’
string n[]={"mon","tue","wed","thu","fri","sat","sun"};
^~~~~~
struct
./Main.cpp:6:3: error: ‘cin’ was not declared in this scope
cin >> x;
^~~
./Main.cpp:6:3: note: suggested alternative: ‘main’
cin >> x;
^~~
main
./Main.cpp:9:3: error: ‘cout’ was not declared in this scope
cout << n[x] << '\n';
^~~~
./Main.cpp:9:11: error: ‘n’ was not declared in this scope
cout << n[x] << '\n';
^
セット
テストケース