ログイン
新規登録
AtsuoCoder Waseda Tour Finals 2025
読込中…
Home
Tasks
Clar
Submissions
Standings
提出 13002d41-2253-49e9-a17c-c2aa4b17bfa4
コード
#include <stdbool.h> using namespace std; int main(){ int a; int h; cin >> a; cin >> h; if(h>a){ cout << 1 <<endl; } else{ cout << 0 <<endl; } }
結果
問題
点数
言語
結果
実行時間
メモリ
B - Trickster
0
C++
WJ
0 ms
0 KiB
コンパイルエラー
Main.cpp: In function 'int main()': Main.cpp:7:3: error: 'cin' was not declared in this scope 7 | cin >> a; | ^~~ Main.cpp:2:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'? 1 | #include <stdbool.h> +++ |+#include <iostream> 2 | using namespace std; Main.cpp:10:7: error: 'cout' was not declared in this scope 10 | cout << 1 <<endl; | ^~~~ Main.cpp:10:7: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? Main.cpp:10:19: error: 'endl' was not declared in this scope 10 | cout << 1 <<endl; | ^~~~ Main.cpp:2:1: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'? 1 | #include <stdbool.h> +++ |+#include <ostream> 2 | using namespace std; Main.cpp:13:7: error: 'cout' was not declared in this scope 13 | cout << 0 <<endl; | ^~~~ Main.cpp:13:7: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? Main.cpp:13:19: error: 'endl' was not declared in this scope 13 | cout << 0 <<endl; | ^~~~ Main.cpp:13:19: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?