Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
154146 熊泊彧 08判断是否为闰年 C++ Compile Error 0 MS 0 KB 250 2026-05-24 15:34:52

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; if(n % 400==0){ cout<<"yes"; }else{ if() cout<<"yes"; }else{ cout<<"no"; } }else{ cout<<"no"; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:9:9: error: expected primary-expression before ')' token
      if()
         ^
Main.cc:14:4: error: 'else' without a previous 'if'
   }else{
    ^
Main.cc: At global scope:
Main.cc:17:3: error: expected unqualified-id before 'else'
  }else{
   ^
Main.cc:21:2: error: expected unqualified-id before 'return'
  return 0;
  ^
Main.cc:22:1: error: expected declaration before '}' token
 }
 ^