Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
125432 | 田子熙 | 矩阵倒序输出 | C++ | Compile Error | 0 MS | 0 KB | 312 | 2025-07-14 16:27:30 |
#include<bits/stdc++.h>//<csterint> using namespace std; int a[100][100]; int b[100][100]; int main(){ cin>>n>>m; for(int i=0;i<n;i++){ for(int j=0;j<m;j++){ cin>>a[i][j]; } } for(int i=0;i<n;i++){ for(int j=m-i;j>=0;j--){ cout<<a[i][j]<<" "; } cout<<endl; } return 0; }
Main.cc: In function 'int main()': Main.cc:6:7: error: 'n' was not declared in this scope cin>>n>>m; ^ Main.cc:6:10: error: 'm' was not declared in this scope cin>>n>>m; ^