Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
127384 周辰彦 二维数组的存储 C++ Compile Error 0 MS 0 KB 258 2025-07-27 15:48:17

Tests(0/0):


Code:

using namespace std; int main() { int a[10][10]; for(int i=0;i<3;i++) for(int j=0;j<4;j++) cin>>a[i][j]; for(int i=0;i<3;i++) { for(int j=0;j<4;j++) printf("%.4d",a[i][j]); cout<<endl; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:7:4: error: 'cin' was not declared in this scope
    cin>>a[i][j];
    ^
Main.cc:11:25: error: 'printf' was not declared in this scope
    printf("%.4d",a[i][j]);
                         ^
Main.cc:12:3: error: 'cout' was not declared in this scope
   cout<