Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
93444 andrew [在线测评解答教程] 闰年 C++ Compile Error 0 MS 0 KB 306 2024-10-15 21:30:05

Tests(0/0):


Code:

#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(a%4==0 && a%100!=0 || a%400==0) cout << "yes" << endl; else cout << "no" << endl; } return 0; }


Run Info:

Main.cc:3:7: error: storage size of 'y' isn't known
 int y[];
       ^
Main.cc: In function 'int main()':
Main.cc:9:12: error: 'a' was not declared in this scope
         if(a%4==0 && a%100!=0 || a%400==0) cout << "yes" << endl;
            ^