| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 121306 | 谭思宸 | 拐角方阵 | C++ | Compile Error | 0 MS | 0 KB | 346 | 2025-06-07 11:23:19 |
#include<iostream> using namespace std; int main(){ int n,a[20][20],c=0; cin>>n; for(int j=0;j<n;j++){ for(int j=0;j<n;j++){ if(i<j){ cout<<i+1<<' '; } else{ cout<<j+1<<' '; } } cout<<endl; } return 0; }
Main.cc: In function 'int main()':
Main.cc:8:16: error: 'i' was not declared in this scope
if(i