Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
7636 黄宜洋 [在线测评解答教程] 闰年 C++ Compile Error 0 MS 0 KB 596 2025-05-10 14:32:34

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; bool years(int x){ if(x%400!=0&&x%100==0){ return false; } else{ if(x%4==0||x%400==0){ return true; } else{ return false; } } } int main(){ int l,t; for(int i=1;i<=l;i++){ cin>>t; if(years(t)) cout<< } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:27:5: error: expected primary-expression before '}' token
     }
     ^
Main.cc:27:5: error: expected ';' before '}' token