foo.cc:4:5: error: conflicting declaration 'int n [1005]'
    4 | int n[1005];
      |     ^
foo.cc:3:5: note: previous declaration as 'int n'
    3 | int n,i,pi,qi;
      |     ^
foo.cc:5:5: error: conflicting declaration 'int i [1005]'
    5 | int i[1005];
      |     ^
foo.cc:3:7: note: previous declaration as 'int i'
    3 | int n,i,pi,qi;
      |       ^
foo.cc:6:5: error: conflicting declaration 'int pi [1005]'
    6 | int pi[1005];
      |     ^~
foo.cc:3:9: note: previous declaration as 'int pi'
    3 | int n,i,pi,qi;
      |         ^~
foo.cc:7:5: error: conflicting declaration 'int qi [1005]'
    7 | int qi[1005];
      |     ^~
foo.cc:3:12: note: previous declaration as 'int qi'
    3 | int n,i,pi,qi;
      |            ^~
foo.cc: In function 'int main()':
foo.cc:12:21: error: expected primary-expression before ')' token
   12 |         for(int i=0;)
      |                     ^
foo.cc:12:21: error: expected ';' before ')' token
   12 |         for(int i=0;)
      |                     ^
      |                     ;
foo.cc:12:17: warning: unused variable 'i' [-Wunused-variable]
   12 |         for(int i=0;)
      |                 ^
   
  
    [Hydro](https://hydro.ac)提供评测服务