ログイン
新規登録
AtsuoCoder Petrozavodsk Contest 001
読込中…
Home
Tasks
Clar
Submissions
Standings
提出 2aed3531-5d94-4aba-9914-735a6e35e668
コード
int main() { int A,B,C,T; cin >> A >> B >> C >> T; if(1/A < C/T){ cout << 1 << endl; else if(1/B < C/T){ cout << 1 << endl; } else() cout < 0 << endl; } }
結果
問題
点数
言語
結果
実行時間
メモリ
B - Dash
0
C++
WJ
0 ms
0 KiB
コンパイルエラー
Main.cpp: In function 'int main()': Main.cpp:3:5: error: 'cin' was not declared in this scope 3 | cin >> A >> B >> C >> T; | ^~~ Main.cpp:5:9: error: 'cout' was not declared in this scope 5 | cout << 1 << endl; | ^~~~ Main.cpp:5:22: error: 'endl' was not declared in this scope 5 | cout << 1 << endl; | ^~~~ Main.cpp:6:5: error: expected '}' before 'else' 6 | else if(1/B < C/T){ | ^~~~ Main.cpp:4:18: note: to match this '{' 4 | if(1/A < C/T){ | ^ Main.cpp:7:9: error: 'cout' was not declared in this scope 7 | cout << 1 << endl; | ^~~~ Main.cpp:7:22: error: 'endl' was not declared in this scope 7 | cout << 1 << endl; | ^~~~ Main.cpp:9:10: error: expected primary-expression before ')' token 9 | else() | ^ Main.cpp: At global scope: Main.cpp:12:1: error: expected declaration before '}' token 12 | } | ^