运行 ID: 102533

Main.cc: In function ‘void msort(int, int)’:
Main.cc:3:9: error: expected primary-expression before ‘=’ token
   if(s= =t) return;
         ^
Main.cc:10:7: error: ‘a’ was not declared in this scope
    if(a[i]<=a[j])
       ^
Main.cc:12:5: error: ‘r’ was not declared in this scope
     r[k]=a[i];k++;i++;
     ^
Main.cc:14:5: error: ‘r’ was not declared in this scope
     r[k]=a[i];k++;i++;
     ^
Main.cc:15:5: error: ‘ans’ was not declared in this scope
     ans+=mid-i+1;
     ^~~
Main.cc:20:4: error: ‘r’ was not declared in this scope
    r[k]=a[i];k++;i++;
    ^
Main.cc:20:9: error: ‘a’ was not declared in this scope
    r[k]=a[i];k++;i++;
         ^
Main.cc:24:4: error: ‘r’ was not declared in this scope
    r[k]=a[i];k++;i++;
    ^
Main.cc:24:9: error: ‘a’ was not declared in this scope
    r[k]=a[i];k++;i++;
         ^
Main.cc: At global scope:
Main.cc:27:2: error: expected unqualified-id before ‘for’
  for(int i=s;i<=t;i++) a[i]=r[i];
  ^~~
Main.cc:27:14: error: ‘i’ does not name a type
  for(int i=s;i<=t;i++) a[i]=r[i];
              ^
Main.cc:27:19: error: ‘i’ does not name a type
  for(int i=s;i<=t;i++) a[i]=r[i];
                   ^
Main.cc:28:1: error: expected declaration before ‘}’ token
 }
 ^