运行 ID: 10309

Main.cc:3:51: error: conflicting declaration ‘int b’
    3 | int n,m,a[999999][999999],b[999999][999999],i,j,k,b;
      |                                                   ^
Main.cc:3:27: note: previous declaration as ‘int b [999999][999999]’
    3 | int n,m,a[999999][999999],b[999999][999999],i,j,k,b;
      |                           ^
Main.cc: In function ‘int main()’:
Main.cc:8:11: error: incompatible types in assignment of ‘int’ to ‘int [999999][999999]’
    8 |         b=0;
      |           ^
Main.cc:22:20: error: incompatible types in assignment of ‘int’ to ‘int [999999][999999]’
   22 |                  b=1;
      |                    ^
Main.cc:26:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   26 |         if(b==1){
      |               ^