| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 71201 | 刘泽熙 | 08判断是否为闰年 | C++ | Compile Error | 0 MS | 0 KB | 358 | 2024-04-21 14:40:20 |
#include <bits/stdc++.h> using namespace std; int main() { int year; cin >> year; if (year % 4 != 0) { cout << year << " " << ""; "no"; } else { if (year % 100 != 0) { cout << year << " " << "yes"; } else { if (year % 400 == 0) { cout << year << " " << "yes"; } else { cout << year << " " << "no"; } } }
Main.cc: In function 'int main()':
Main.cc:9:34: warning: statement has no effect [-Wunused-value]
cout << year << " " << ""; "no";
^
Main.cc:20:1: error: expected '}' at end of input
}
^