| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 156756 | 张蔚林 | 08判断是否为闰年 | C++ | Compile Error | 0 MS | 0 KB | 209 | 2026-07-10 13:45:30 |
include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; if((n%400==0)||((n%4==0)&&(n%100!=0))){ cout<<n<<" "<<"Yes"<<endl; } else { cout<<n<<" "<<"No"<<endl; } return 0;
Main.cc:2:1: error: 'include' does not name a type include ^ Main.cc: In function 'int main()': Main.cc:7:1: error: 'cin' was not declared in this scope cin>>n; ^ Main.cc:9:2: error: 'cout' was not declared in this scope cout<