| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 129921 | 王垚植 | [在线测评解答教程] 闰年 | C++ | Compile Error | 0 MS | 0 KB | 279 | 2025-09-06 17:53:24 |
#inlude <bits/stdc++.h> using namespace std; int main() { int n,t,i; cin>>t; for (i=1;i<=t;i++){ cin>>n; if ((n%4==0 && n%100!=0) ||n%400==0){ cout<<"Yes"<<endl; } else{ cout<<"NO"<<endl; } } }
Main.cc:1:2: error: invalid preprocessing directive #inlude
#inlude
^
Main.cc: In function 'int main()':
Main.cc:6:5: error: 'cin' was not declared in this scope
cin>>t;
^
Main.cc:10:10: error: 'cout' was not declared in this scope
cout<<"Yes"<