| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 71168 | 杜奕辰 | 08判断是否为闰年 | C++ | Compile Error | 0 MS | 0 KB | 268 | 2024-04-21 14:28:40 |
#include<iostream> using namespace std; int main() { int year; cin>>year; int a=100; if(year%4!=0) { cout<<year<<" "<<"NO"; } else { if(4%a==1) { cout<<year<<" "<<"NO"; } else { if(year%4==0) cout<<year<<" "<<"Yes"; return 0; }
Main.cc: In function 'int main()': Main.cc:16:3: error: expected '}' at end of input } ^ Main.cc:16:3: error: expected '}' at end of input