| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 158431 | 格林老师 | 放大的X | C++ | Compile Error | 0 MS | 0 KB | 483 | 2026-08-21 19:11:51 |
#include <bits/stdc++.h> using namespace std; int main() { int T; cin>>T; for (int i=0;i<T;i++){ int n; //奇数 cin>>n; for (int x=0;x<n;x++){ for (int y=0;y<n;y++){ if (x==y || x+y==n-1){ cout<<'X'; } else{ cout<<" "; } } cout<<"\n"; } cout<<"" } return 0; }
Main.cc: In function 'int main()':
Main.cc:22:5: error: expected ';' before '}' token
}
^