运行 ID: 30373

Main.cc:5:1: error: expected unqualified-id before ‘{’ token
 {
 ^
Main.cc: In function ‘int main()’:
Main.cc:25:4: error: invalid operands of types ‘int’ and ‘int [20]’ to binary ‘operator/’
  n1/=b;
  ~~^~~
Main.cc:25:6: error:   in evaluation of ‘operator/=(int, int [20])’
  n1/=b;
      ^
Main.cc:26:4: error: invalid operands of types ‘int’ and ‘int [20]’ to binary ‘operator/’
  n2/=b;
  ~~^~~
Main.cc:26:6: error:   in evaluation of ‘operator/=(int, int [20])’
  n2/=b;
      ^
Main.cc:12:16: warning: unused variable ‘d’ [-Wunused-variable]
  int n1=0,n2=1,d;
                ^