Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:7:3: error: expected initializer before 'cin'
   cin>>n;
   ^~~
/in/foo.cc:10:3: error: 'a' was not declared in this scope
   a[i][i]=1;
   ^
/in/foo.cc:15:4: error: 'a' was not declared in this scope
    a[i][j]=a[i-1][j]+a[i-1][j-1];
    ^
/in/foo.cc:19:10: error: 'a' was not declared in this scope
    cout<<a[i][j];
          ^
/in/foo.cc:22:2: error: expected '}' at end of input
  }
  ^

信息

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