| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 83750 | 刘泽熙 | 蛇形矩阵 | C++ | Compile Error | 0 MS | 0 KB | 220 | 2024-07-14 16:59:08 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int k=1,j=0; for(int i=0;i<n;i++){ a[i][j]=k; k++; j++; } k++; for(int i=n-1;i>=0;i--){ a[i][j]=k; k++; } j++; }
Main.cc: In function 'int main()': Main.cc:8:3: error: 'a' was not declared in this scope a[i][j]=k; ^ Main.cc:14:3: error: 'a' was not declared in this scope a[i][j]=k; ^