Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
90199 | 1234567890 | [在线测评解答教程] 闰年 | C++ | Compile Error | 0 MS | 0 KB | 214 | 2024-09-08 11:00:25 |
#include <iostream> using namespace std; int main() { int t, n; cin>>t while (t--) { cin>>n; if(n%4==0) { cout <<"yes\n"; } else cout<<"no\n"; return 0; }
Main.cc: In function 'int main()': Main.cc:7:5: error: expected ';' before 'while' while (t--) { ^ Main.cc:5:12: warning: unused variable 'n' [-Wunused-variable] int t, n; ^ Main.cc:13:1: error: expected '}' at end of input } ^