| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 155306 | 汪义罗 | 矩阵旋转 | C++ | Compile Error | 0 MS | 0 KB | 328 | 2026-06-06 15:16:54 |
#include<bits/stdc++.h> using namespace std; int main(){ int a[101][101]; int n,m; cin>>n>>m; //输入 //1 for(int i=1;i<=n;i++){//x for(int j=1;j<=m;j++){//y cin>>a[i][j]; } } for(int i=1;i<=m;i++){//x for(int j>=n;j>=1;j--){//y cout<<a[i][j]<<" "; } cout<<endl; } return 0; }
Main.cc: In function 'int main()':
Main.cc:15:12: error: expected ';' before '>=' token
for(int j>=n;j>=1;j--){//y
^
Main.cc:15:12: error: expected primary-expression before '>=' token
Main.cc:15:17: warning: for increment expression has no effect [-Wunused-value]
for(int j>=n;j>=1;j--){//y
^
Main.cc:15:20: error: expected ')' before ';' token
for(int j>=n;j>=1;j--){//y
^
Main.cc:15:21: error: 'j' was not declared in this scope
for(int j>=n;j>=1;j--){//y
^