| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 150414 | 张蔚林 | 08有几个闰年 | C++ | Compile Error | 0 MS | 0 KB | 292 | 2026-03-28 09:39:50 |
#include<iostream> using namespace std; int main() { int a,b,c; int d; d=0; cin>>a>>b>>c; if(((a%4==0)&&(a%100!=0))||(a%400==0)){ d++ } if(((b%4==0)&&(b%100!=0))||(b%400==0)){ d++ } if(((b%4==0)&&(b%100!=0))||(b%400==0)){ d++ } cout<<d<<endl; return 0; }
Main.cc: In function 'int main()': Main.cc:11:2: error: expected ';' before '}' token } ^ Main.cc:14:2: error: expected ';' before '}' token } ^ Main.cc:17:2: error: expected ';' before '}' token } ^