Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
107134 张永良 二维数组的存储 C++ Compile Error 0 MS 0 KB 271 2025-01-17 13:55:50

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:13:11: error: unable to find string literal operator 'operator""a' with 'const char [4]', 'long unsigned int' arguments
    printf("%4d"a[j][i])
           ^