| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 145693 | 张晓冉 | 08有几个闰年 | C++ | Compile Error | 0 MS | 0 KB | 333 | 2026-01-25 18:07:54 |
#include<bits/stdc++.h> using namespace std; bool a1(long long n){ if((n%4==0&&n%100!=0)||n%400==0){ return true; }else{ return false; } int main(){ long long a,b,c,d=0; cin>>a>>b>>c; if(a1(a))d++; if(a1(b))d++; if(a1(c))d++; cout<<d; return 0; }
Main.cc: In function 'bool a1(long long int)':
Main.cc:9:11: error: a function-definition is not allowed here before '{' token
int main(){
^
Main.cc:17:1: error: expected '}' at end of input
}
^