| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 129924 | 郦辰希 | [在线测评解答教程] 闰年 | C++ | Compile Error | 0 MS | 0 KB | 198 | 2025-09-06 17:55:48 |
#include<stdio.h> using namespace std; int main() { int t,n,i; cin>>n; if((n%4==0 && n%100!=0)n%400==0){ cout<<"Yes" } else{ cout<<"No" } return 0; }
Main.cc: In function 'int main()':
Main.cc:6:5: error: 'cin' was not declared in this scope
cin>>n;
^
Main.cc:7:28: error: expected ')' before 'n'
if((n%4==0 && n%100!=0)n%400==0){
^
Main.cc:8:5: error: 'cout' was not declared in this scope
cout<<"Yes"
^
Main.cc:11:5: error: 'cout' was not declared in this scope
cout<<"No"
^
Main.cc:5:9: warning: unused variable 't' [-Wunused-variable]
int t,n,i;
^
Main.cc:5:13: warning: unused variable 'i' [-Wunused-variable]
int t,n,i;
^