Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
8010 | 刘芃伽 | 偶数个1 | C++ | Compile Error | 0 MS | 0 KB | 619 | 2025-06-07 09:03:55 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,cnt=0; cin>>n; int a[n][n]={}; for(int i=0;i<=n;i++){ for(int j=0;j<=n;j++){ cin>>a[i][j]; } } for(int i=0;i<=n;i++){ cnt=0; for(int j=0;j<=n;j++) c+a[i][j]; if(cnt%2==1){ cout<<"Corrupt"; return 0; } } for(int j=0;j<=n;j++){ cnt=0; for(int i=0;i<=n;i++) c+a[i][j]; if(cnt%2==1){ cout<<"Corrupt"; return 0; } } return 0; }
Main.cc: In function 'int main()': Main.cc:6:18: error: variable-sized object 'a' may not be initialized int a[n][n]={}; ^ Main.cc:15:13: error: 'c' was not declared in this scope c+a[i][j]; ^ Main.cc:24:13: error: 'c' was not declared in this scope c+a[i][j]; ^