Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
157594 汤子杨 偶数个1 C++ Compile Error 0 MS 0 KB 359 2026-08-04 10:54:14

Tests(0/0):


Code:

#include<iostream> using namespace std; int a[1005][1005]; int main(){ int n,s,q; cin>>n; for(int i=1;i<=n;i++) { for(int j=1;j<=n;j++) { cin>>a[i][j]; } } for(int i=1;i<=n;i++) { for(int j=1;j<=n;j++) { s=s+j; } if(s%2=0) { t+1; } } if(t=n) { cout<<OK; } else { cout<<Corrupt; } }


Run Info:

Main.cc: In function 'int main()':
Main.cc:20:9: error: lvalue required as left operand of assignment
   if(s%2=0)
         ^
Main.cc:22:4: error: 't' was not declared in this scope
    t+1;
    ^
Main.cc:25:5: error: 't' was not declared in this scope
  if(t=n)
     ^
Main.cc:27:9: error: 'OK' was not declared in this scope
   cout<