| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 71139 | 尚雨钒 | 08判断是否为闰年 | C++ | Compile Error | 0 MS | 0 KB | 161 | 2024-04-21 14:02:26 |
#include<bits/stdc++.h> using namespace std; int main(){ int year>0; cin>>year; if(year%4==0){ cout<<"yes"; }else{ cout<<"no"; } return 0; }
Main.cc: In function 'int main()':
Main.cc:4:10: error: expected initializer before '>' token
int year>0;
^
Main.cc:5:7: error: 'year' was not declared in this scope
cin>>year;
^