Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
83428 石依灵 矩阵转置 C++ Compile Error 0 MS 0 KB 453 2024-07-14 14:52:36

Tests(0/0):


Code:

#include<iostream> using namespace std; int main() { int n,m; int a[100][100]; cin>>n>>m; for(int i=1; i<=n; i++) { for(int j=1; j<=m; j++) { cin>>a[i][j]; } } int t; for(int j=0;j<n;j++){ t=a[n-1][j]; a[n-1][j]=a[m-1][j]; a[m-1][j]=t; } for(int i=0;i<3;i++){ for(int j=0;j<4;j++){ cout<<s[i][j]<<' '; } cout<<endl; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:20:19: error: 's' was not declared in this scope
             cout<