Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
127320 蒋骏逸 二维数组的存储 C++ Compile Error 0 MS 0 KB 285 2025-07-27 11:27:09

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int a[3][4]; for(int i=1;i<=2;i++) { for(int j=1;j<=3;j++) { cin>>a[i][j] } } for(int i=1;i<=2;i++) { for(int j=1;j<=3;j++) { cout<<a[i][j]<<" " } cout<<endl; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:11:3: error: expected ';' before '}' token
   }
   ^
Main.cc:18:3: error: expected ';' before '}' token
   }
   ^