Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
99041 | 谭思宸 | 08判断是否为闰年 | C++ | Compile Error | 0 MS | 0 KB | 391 | 2024-11-24 10:18:09 |
#include<iostream> using namespace std; int main() { int year; cin>>year; if(year%400==0) cout<<year<<" "<<"Yes"<<endl; else { if(year%4==0) { if(year%100!=0) cout<<year<<" "<<"Yes"<<endl; else cout<<year<<" "<<"No"<<endl; } else cout<<year<<" "<<"No"<<endl; return 0; }
Main.cc: In function 'int main()': Main.cc:21:1: error: expected '}' at end of input } ^