Submission #00061
ソースコード
ステータス
項目 |
データ |
問題 |
0002 - 猪苗代湖の魚釣り競争 |
ユーザー名 |
幻想愛者
|
投稿日時 |
2021-07-21 12:37:17 |
言語 |
C++ |
状態 |
Compile Error |
得点 |
0
|
ソースコード長 |
399 Byte |
最大実行時間 |
-
|
最大メモリ使用量 |
|
コンパイルメッセージ
./Main.cpp: In function ‘int main()’:
./Main.cpp:8:5: error: ‘cin’ was not declared in this scope
cin>>h1>>h2>>k1>>k2>>a>>b>>c>>d;
^~~
./Main.cpp:8:5: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
./Main.cpp:5:1:
+#include <iostream>
using namespace std;
./Main.cpp:8:5:
cin>>h1>>h2>>k1>>k2>>a>>b>>c>>d;
^~~
./Main.cpp:11:17: error: ‘cout’ was not declared in this scope
if(sum>kei) cout<<"hiroshi"<<"\n";
^~~~
./Main.cpp:11:17: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
./Main.cpp:12:22: error: ‘cout’ was not declared in this scope
else if(sum<kei) cout<<"kenjiro"<<"\n";
^~~~
./Main.cpp:12:22: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
./Main.cpp:13:10: error: ‘cout’ was not declared in this scope
else cout<<"even"<<"\n";
^~~~
./Main.cpp:13:10: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
セット
テストケース