Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:5:19: error: expected ',' or ';' before 'i'
  int a[20][20]={0}i,j,n;
                   ^
/in/foo.cc:6:7: error: 'n' was not declared in this scope
  cin>>n;
       ^
/in/foo.cc:7:6: error: 'i' was not declared in this scope
  for(i=0;i<n;i++)
      ^
/in/foo.cc:12:6: error: 'i' was not declared in this scope
  for(i=2;i<n;i++)
      ^
/in/foo.cc:14:7: error: 'j' was not declared in this scope
   for(j=i;j<i;j++)
       ^
/in/foo.cc:19:6: error: 'i' was not declared in this scope
  for(i=0;i<n;i++)
      ^
/in/foo.cc:21:7: error: 'j' was not declared in this scope
   for(j=0;j<=i;j++)
       ^

信息

递交者
类型
递交
题目
P1074 打印杨辉三角
语言
C++
递交时间
2024-05-24 15:53:36
评测时间
2024-05-24 15:53:36
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes