Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
98991 | 陈治宸 | 08判断是否为闰年 | C++ | Compile Error | 0 MS | 0 KB | 363 | 2024-11-23 22:02:58 |
#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 <<"No"<< endl; } else cout<<"No"<<endl; return 0; }
Main.cc: In function 'int main()': Main.cc:21:1: error: expected '}' at end of input } ^