Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
7269 | 侯宜辰 | 08有几个闰年 | C++ | Compile Error | 0 MS | 0 KB | 1142 | 2025-04-12 10:56:50 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int y,a,s,d; cin>>y>>a>>s; if(y%100==0) { if(y%400==0) { d=d+1; } else { if(a%100==0) { if(a%400==0) { d=d+1; } } else { if(a%4==0) { d=d+1; } else { cout<<y<<" "<<"No"; } } } } else { if(y%4==0) { d=d+1; } else { if(s%100==0) { if(s%400==0) { d=d+1; } else { cout<<y<<" "<<"No"; } } else { if(s%4==0) { d=d+1; } } } return 0; }
Main.cc: In function 'int main()': Main.cc:73:1: error: expected '}' at end of input } ^