| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 144719 | 8 | 08有几个闰年 | C++ | Compile Error | 0 MS | 0 KB | 356 | 2026-01-24 15:53:35 |
#include<iostream> using namespace std; int main(){ int n; int a==0; while(3){ cin>>n; if(n%400==0||(n%4==0&&n%100!=0)){ cout<<"Yes"<<endl; int a=a+1 } else{ cout<<"No"<<endl; } t--; } return 0; } return 0; }
Main.cc: In function 'int main()':
Main.cc:5:10: error: expected initializer before '==' token
int a==0;
^
Main.cc:11:8: error: expected ',' or ';' before '}' token
}
^
Main.cc:15:9: error: 't' was not declared in this scope
t--;
^
Main.cc: At global scope:
Main.cc:27:2: error: expected unqualified-id before 'return'
return 0;
^
Main.cc:28:1: error: expected declaration before '}' token
}
^