| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 65094 | 余慕涵 | 矩阵行交换 | C++ | Compile Error | 0 MS | 0 KB | 528 | 2024-01-23 18:30:20 |
#include <iostream> #include <cstdio> #include <cmath> using namespace std; int main(){ int n=6,m=6,k=0,j=0,x=0,c=0; cin>>x>>c; int v[n][m]; for(k=1;k<n;k++){ for(j=1;j<m;j++) cin>>v[k][j];} for(k=1;k<n;k++){ for(j=1;j<m;j++) if(k==x) cout<<v[c][j]<<" "; else if(k==c) cout<<v[c][j]<<" "; else cout<<v[k][j]<<" "; } cout<<endl; } return 0; }
Main.cc:25:5: error: expected unqualified-id before 'return'
return 0;
^
Main.cc:26:1: error: expected declaration before '}' token
}
^