| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 83475 | 尚雨钒 | 矩阵转置 | C++ | Runtime Error | 3 MS | 312 KB | 303 | 2024-07-14 15:04:37 |
#include <iostream> using namespace std; int main() { int n,m; cin>>n>>m; int a[n][n]; for(int i=0; i<n; i++) { for(int j=0; j<m; j++) { cin>>a[i][j]; } } int t; for(int i=0; i<m; i++) { for(int j=0; j<n; j++) { cout<<a[j][i]<<" "; } cout<<endl; } return 0; }
Runtime Error:Segmentation fault