Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
155500 鸡哥 08有几个闰年 C++ Compile Error 0 MS 0 KB 454 2026-06-07 13:44:20

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,n=0; cin>>a>>b>>c; if(a / 400 == 0 or a / 100 != 0){ if(a / 4 == 0){ n=n+1; }else{ n=n; }else{ if(b / 400 == 0 or b / 100 != 0){ if(b / 4 == 0){ n=n+1; }else{ n=n; }else{ if(c / 400 == 0 or c / 100 != 0){ if(c / 4 == 0){ n=n+1; }else{ n=n; } } } } } } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:13:4: error: expected '}' before 'else'
   }else{
    ^
Main.cc:19:5: error: expected '}' before 'else'
    }else{
     ^
Main.cc: At global scope:
Main.cc:31:1: error: expected declaration before '}' token
 }
 ^