Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
65106 余慕涵 矩阵旋转 C++ Compile Error 0 MS 0 KB 451 2024-01-23 19:03:27

Tests(0/0):


Code:

#include <iostream> #include <cstdio> #include <cmath> using namespace std; int main(){ int n=0,m=0,k=0,j=0,x=0,c=0; cin>>n>>m; int v[21][21],l[21][21]; for(k=0;k<n;k++){ for(j=0;j<m;j++){ cin>>v[k][j]; l[j][n-k-1]=v[k][j];} } for(k=0;k<n;k++){ cout<<l[k][0] for(j=0;j<m;j++) cout<<" "<<l[k][j]; cout<<endl; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:16:9: error: expected ';' before 'for'
         for(j=0;j