Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
155192 解禾溪 08有几个闰年 C++ Compile Error 0 MS 0 KB 436 2026-06-05 18:14:03

Tests(0/0):


Code:

#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 a,b,c; cin>>a>>b>>c; if(a%4==0){ cout<<1; } if else(b%4==0){ cout<<2; } else (c%4==0){ cout<<3 } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:13:8: error: expected '(' before 'else'
     if else(b%4==0){
        ^
Main.cc:16:5: error: 'else' without a previous 'if'
     else (c%4==0){
     ^
Main.cc:16:18: error: expected ';' before '{' token
     else (c%4==0){
                  ^