记录详情

Compile Error

foo.cc:24:5: error: redefinition of ‘int n’
   24 | int n,a[1001][1001],f[1001][1001];
      |     ^
foo.cc:3:5: note: ‘int n’ previously declared here
    3 | int n,a[1001][1001],f[1001][1001];
      |     ^
foo.cc:24:7: error: redefinition of ‘int a [1001][1001]’
   24 | int n,a[1001][1001],f[1001][1001];
      |       ^
foo.cc:3:7: note: ‘int a [1001][1001]’ previously declared here
    3 | int n,a[1001][1001],f[1001][1001];
      |       ^
foo.cc:24:21: error: redefinition of ‘int f [1001][1001]’
   24 | int n,a[1001][1001],f[1001][1001];
      |                     ^
foo.cc:3:21: note: ‘int f [1001][1001]’ previously declared here
    3 | int n,a[1001][1001],f[1001][1001];
      |                     ^
foo.cc:25:5: error: redefinition of ‘int main()’
   25 | int main(){
      |     ^~~~
foo.cc:4:5: note: ‘int main()’ previously defined here
    4 | int main(){
      |     ^~~~

信息

递交者
类型
递交
题目
数字金字塔
语言
C++
递交时间
2024-08-23 19:30:22
评测时间
2024-08-23 19:30:22
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes