Compile Error

foo.cc:33:5: error: redefinition of ‘int a [100000]’
   33 | int a[100000],b[100000],c[100000],d[100000],x,y,z;
      |     ^
foo.cc:3:5: note: ‘int a [100000]’ previously declared here
    3 | int a[100000],b[100000],c[100000],d[100000],x,y,z;
      |     ^
foo.cc:33:15: error: redefinition of ‘int b [100000]’
   33 | int a[100000],b[100000],c[100000],d[100000],x,y,z;
      |               ^
foo.cc:3:15: note: ‘int b [100000]’ previously declared here
    3 | int a[100000],b[100000],c[100000],d[100000],x,y,z;
      |               ^
foo.cc:33:25: error: redefinition of ‘int c [100000]’
   33 | int a[100000],b[100000],c[100000],d[100000],x,y,z;
      |                         ^
foo.cc:3:25: note: ‘int c [100000]’ previously declared here
    3 | int a[100000],b[100000],c[100000],d[100000],x,y,z;
      |                         ^
foo.cc:33:35: error: redefinition of ‘int d [100000]’
   33 | int a[100000],b[100000],c[100000],d[100000],x,y,z;
      |                                   ^
foo.cc:3:35: note: ‘int d [100000]’ previously declared here
    3 | int a[100000],b[100000],c[100000],d[100000],x,y,z;
      |                                   ^
foo.cc:33:45: error: redefinition of ‘int x’
   33 | int a[100000],b[100000],c[100000],d[100000],x,y,z;
      |                                             ^
foo.cc:3:45: note: ‘int x’ previously declared here
    3 | int a[100000],b[100000],c[100000],d[100000],x,y,z;
      |                                             ^
foo.cc:33:47: error: redefinition of ‘int y’
   33 | int a[100000],b[100000],c[100000],d[100000],x,y,z;
      |                                               ^
foo.cc:3:47: note: ‘int y’ previously declared here
    3 | int a[100000],b[100000],c[100000],d[100000],x,y,z;
      |                                               ^
foo.cc:33:49: error: redefinition of ‘int z’
   33 | int a[100000],b[100000],c[100000],d[100000],x,y,z;
      |                                                 ^
foo.cc:3:49: note: ‘int z’ previously declared here
    3 | int a[100000],b[100000],c[100000],d[100000],x,y,z;
      |                                                 ^
foo.cc:34:5: error: redefinition of ‘int main()’
   34 | int main()
      |     ^~~~
foo.cc:4:5: note: ‘int main()’ previously defined here
    4 | int main()
      |     ^~~~

信息

递交者
类型
递交
题目
P1053 A10-1 有序数组的合并
语言
C++
递交时间
2025-07-19 07:58:10
评测时间
2025-07-19 07:58:10
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes