Compile Error

foo.cc: In function 'int main()':
foo.cc:8:16: error: 'i' was not declared in this scope
    8 |   for(j=1;j<=n-i;j++)
      |                ^
foo.cc:12:16: error: 'i' was not declared in this scope
   12 |   for(j=1;j<=2*i-1;j++)
      |                ^
foo.cc:16:16: error: 'i' was not declared in this scope
   16 |   for(j=1;j<=n-i;j++)
      |                ^
foo.cc:21:1: error: expected '}' at end of input
   21 | }
      | ^
foo.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1052 *组成的图形(4)
语言
C++
递交时间
2022-01-25 10:14:03
评测时间
2022-01-25 10:14:03
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes