| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 158585 | 郦辰希 | 放大的X | C++ | Compile Error | 0 MS | 0 KB | 334 | 2026-08-22 15:22:29 |
#include<bits/stdc++.h> using namespace std; int main(){ int T,i,j; cin>>T; for(i=0;i<T;i++){ for(j=0;j<n;j++){ if(i==j || i+j==n-1){ cout<<"+"; } else{ cout<<" "; } } cout<<endl; } return 0; }
Main.cc: In function 'int main()':
Main.cc:7:19: error: 'n' was not declared in this scope
for(j=0;j