记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:11:6: error: conflicting declaration 'int a1'
  int a1,a2,a3;
      ^~
/in/foo.cc:6:9: note: previous declaration as 'int a1 [10000]'
     int a1[10000];
         ^~
/in/foo.cc:11:9: error: conflicting declaration 'int a2'
  int a1,a2,a3;
         ^~
/in/foo.cc:7:6: note: previous declaration as 'int a2 [10000]'
  int a2[10000];
      ^~
/in/foo.cc:11:12: error: conflicting declaration 'int a3'
  int a1,a2,a3;
            ^~
/in/foo.cc:8:6: note: previous declaration as 'int a3 [10000]'
  int a3[10000];
      ^~
/in/foo.cc:17:1: error: expected ';' before '}' token
 }
 ^
/in/foo.cc:6:9: warning: unused variable 'a1' [-Wunused-variable]
     int a1[10000];
         ^~
/in/foo.cc:7:6: warning: unused variable 'a2' [-Wunused-variable]
  int a2[10000];
      ^~
/in/foo.cc:8:6: warning: unused variable 'a3' [-Wunused-variable]
  int a3[10000];
      ^~
/in/foo.cc:9:6: warning: unused variable 'result1' [-Wunused-variable]
  int result1[10000];
      ^~~~~~~
/in/foo.cc:10:6: warning: unused variable 'result2' [-Wunused-variable]
  int result2[10000];
      ^~~~~~~
/in/foo.cc:12:6: warning: unused variable 'count1' [-Wunused-variable]
  int count1,count2;
      ^~~~~~
/in/foo.cc:12:13: warning: unused variable 'count2' [-Wunused-variable]
  int count1,count2;
             ^~~~~~

信息

递交者
类型
递交
比赛
泰院2401程序设计基础作业赛第七场
语言
C++
递交时间
2024-12-02 14:21:32
评测时间
2024-12-02 14:21:32
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes