Compile Error

foo.cc: In function 'int main()':
foo.cc:8:7: error: 'n' was not declared in this scope
    8 |  cin>>n;
      |       ^
foo.cc:9:6: error: 'i' was not declared in this scope
    9 |  for(i=1;i<=n;i++)
      |      ^
foo.cc:11:7: error: 'j' was not declared in this scope
   11 |   for(j=1,j<=2*i-1;j++)
      |       ^
foo.cc:11:23: error: expected ';' before ')' token
   11 |   for(j=1,j<=2*i-1;j++)
      |                       ^
      |                       ;
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1049 *组成的图形(1)
语言
C++
递交时间
2021-12-18 18:22:11
评测时间
2021-12-18 18:22:11
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes