Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
151061 张锦程 二维数组的存储 C++ Compile Error 0 MS 0 KB 401 2026-04-04 14:57:02

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int n[3][4]={}; for(int i=0;i<3;i++){ for(int j=0;j<3;j++){ cin>>n[i][j]; } }for(int i=0;i<3;i++){ for(int j=0;j<3;j++){ if(a[i][j]<10) cout<<" "<<a[i][j]<<" "; else cout<<a[i][j]<<" "; }cout<<endl; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:11:16: error: 'a' was not declared in this scope
             if(a[i][j]<10)
                ^