Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
93446 | andrew | [在线测评解答教程] 闰年 | C++ | Compile Error | 0 MS | 0 KB | 327 | 2024-10-15 21:32:50 |
#include <bits/stdc++.h> using namespace std; int y[]; int main() { int n; cin >> n; for (int i = 1; i <= n; i++) cin >> y[i]; for (int i = 1; i <= n; i++) { if(y[i] % 4 == 0 && y[i] % 100 != 0 || y[i] % 400 == 0) cout << "yes" << endl; else cout << "no" << endl; } return 0; }
Main.cc:3:7: error: storage size of 'y' isn't known int y[]; ^