| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 132202 | 陈骏睿 | 偶数个1 | C++ | Compile Error | 0 MS | 0 KB | 788 | 2025-10-07 12:25:32 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n,c,a[100][100]={}; cin>>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++){ c=0; for(int j=0;j<n;j++){ if(a[i][j]==1)c++;} if(c%2!=0;){ cout<<"Corrupt"; return 0; } for(int j=0;j<n;j++){ c=0; for(int i=0;i<n;i++){ if(a[i][j]==1)c++;} if(c%2!=0;){ cout<<"Corrupt"; return 0; } cout<<"OK"; return 0; }
Main.cc: In function 'int main()':
Main.cc:17:22: error: expected ')' before ';' token
if(c%2!=0;){
^
Main.cc:17:23: error: expected primary-expression before ')' token
if(c%2!=0;){
^
Main.cc:25:25: error: expected ')' before ';' token
if(c%2!=0;){
^
Main.cc:25:26: error: expected primary-expression before ')' token
if(c%2!=0;){
^
Main.cc:31:1: error: expected '}' at end of input
}
^
Main.cc:31:1: error: expected '}' at end of input