| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 82229 | 勾好 | 08判断是否为闰年 | C++ | Compile Error | 0 MS | 0 KB | 246 | 2024-07-13 09:48:25 |
using namespace std; int main(){ int a; cin>>a; if(a%400 == 0){ cout<<a<<" "<<"yes"; return 0; }else{ if(a%4 == 0 and a%100 != 0){ cout<<a<<" "<<"yes"; return 0; }else{ cout<<a<<" "<<"no"; } } return 0; }
Main.cc: In function 'int main()': Main.cc:4:2: error: 'cin' was not declared in this scope cin>>a; ^ Main.cc:6:3: error: 'cout' was not declared in this scope cout<