Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
119463 | 杜禹轩 | 08判断是否为闰年 | C++ | Compile Error | 0 MS | 0 KB | 258 | 2025-05-17 15:30:40 |
#include<bits/stdc++.h> using namespace std; int main(){ int u; cin>>u; if(u%400==0){ cout<<u<<" Yes"; }else{ if(u%400==0){ cout<<u<<" Yes"; } }else{ if(u%100!=0){ cout<<u<<" No"; } } return 0; }
Main.cc: In function 'int main()': Main.cc:15:3: error: 'else' without a previous 'if' }else{ ^