| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 75596 | 何思佳 | 判断闰年I | C++ | Compile Error | 0 MS | 0 KB | 192 | 2024-05-27 20:56:43 |
#include<bits/stdc++.h> using namespace std; int main(){ int nf; cin>>nf; if(a%400==0||(a%4==0&&a%100!=0)){ cout<<"leap year"; } else{ cout<<"not leap year"; } return 0; }
Main.cc: In function 'int main()':
Main.cc:6:5: error: 'a' was not declared in this scope
if(a%400==0||(a%4==0&&a%100!=0)){
^