ログイン
新規登録
AtsuoCoder Petrozavodsk Contest 001
読込中…
Home
Tasks
Clar
Submissions
Standings
提出 0162514f-6f0f-49db-bc9e-3c9de179da67
コード
#include <bits/stdc++.h> using namespace std; 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:7:18: error: expected primary-expression before ')' token 7 | if(1/A < C/T;){ | ^ Main.cpp:9:9: error: expected '}' before 'else' 9 | else if(1/B < C/T;){ | ^~~~ Main.cpp:7:19: note: to match this '{' 7 | if(1/A < C/T;){ | ^ Main.cpp:9:27: error: expected primary-expression before ')' token 9 | else if(1/B < C/T;){ | ^ Main.cpp:11:5: error: expected '}' before 'else' 11 | else | ^~~~ Main.cpp:9:28: note: to match this '{' 9 | else if(1/B < C/T;){ | ^ Main.cpp:12:14: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<' 12 | cout < 0 << endl; | ~~^~~~~~~ Main.cpp: At global scope: Main.cpp:14:5: error: expected declaration before '}' token 14 | } | ^ Main.cpp:15:1: error: expected declaration before '}' token 15 | } | ^