| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 145085 | 李昊阳 | [在线测评解答教程] 闰年 | C++ | Compile Error | 0 MS | 0 KB | 193 | 2026-01-25 08:24:25 |
#include <stdio.h> int main() { int t, n; cin>>n; if (n % 400 == 0) or (n % 100 != 0 and n % 4 == 0){ cout<<"yes" }else{ cout<<"No" } return 0;
Main.cc: In function 'int main()':
Main.cc:5:5: error: 'cin' was not declared in this scope
cin>>n;
^
Main.cc:6:22: error: expected primary-expression before 'or' token
if (n % 400 == 0) or (n % 100 != 0 and n % 4 == 0){
^
Main.cc:9:9: error: 'cout' was not declared in this scope
cout<<"No"
^
Main.cc:4:9: warning: unused variable 't' [-Wunused-variable]
int t, n;
^
Main.cc:12:13: error: expected '}' at end of input
return 0;
^