| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 64307 | 周梓易 | 拐角方阵 | C++ | Compile Error | 0 MS | 0 KB | 481 | 2024-01-21 16:12:58 |
#include <iostream> using namespace std; int a [21][21]; int main() { int n; cin >> n; for(int i=0;i<n;i++){ for(int j=0;j<n;j++){ a[i][j]=1; } } for(int k=1;k<n;k++){ for(int i=k;i<n;i++){ for(int j=k;j<n;j++){ a[i][j]+=1 } } } for(int i=0;i<n;i++){ for(int j=0;j<n;j++){ cout<<a[i][j]<<" "; } cout<<endl; } return 0; }
Main.cc: In function 'int main()':
Main.cc:17:13: error: expected ';' before '}' token
}
^