Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
151074 马俊潇 二维数组的存储 C++ Compile Error 0 MS 0 KB 426 2026-04-04 15:30:18

Tests(0/0):


Code:

#include<iostream> #include<cstdio> #include<cstring> #include<cmath> using namespace std; int main(){ int a[3][4]={}; for(int i=0;i<=2;i++){ for(int j=0;j<=3;j++){ cin>>a[i][j]; } } for(int i=0;i<=2;i++){ for(int j=0;j<=3;j++){ printf"%4d\n,a[i][j]";}} return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:15:9: error: expected ';' before string constant
   printf"%4d\n,a[i][j]";}}
         ^
Main.cc:15:24: warning: statement is a reference, not call, to function 'printf' [-Waddress]
   printf"%4d\n,a[i][j]";}}
                        ^
Main.cc:15:24: warning: statement has no effect [-Wunused-value]