运行 ID: 354355

Main.cc: In function ‘int f(int)’:
Main.cc:9:7: warning: suggest parentheses around ‘+’ inside ‘>>’ [-Wparentheses]
  mid=l+r>>1;    
      ~^~
Main.cc: In function ‘int main()’:
Main.cc:20:18: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
  scanf("%d",&a[i]);     
             ~~~~~^
Main.cc:24:15: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
  scanf("%d",&x);      
             ~~^
Main.cc: At global scope:
Main.cc:30:2: error: ‘include’ does not name a type
 }include
  ^~~~~~~
Main.cc:32:11: error: redefinition of ‘long long int n’
 long long n,a[100005],q,x,mid;
           ^
Main.cc:3:11: note: ‘long long int n’ previously declared here
 long long n,a[100005],q,x,mid;
           ^
Main.cc:32:21: error: redefinition of ‘long long int a [100005]’
 long long n,a[100005],q,x,mid;
                     ^
Main.cc:3:13: note: ‘long long int a [100005]’ previously declared here
 long long n,a[100005],q,x,mid;
             ^
Main.cc:32:23: error: redefinition of ‘long long int q’
 long long n,a[100005],q,x,mid;
                       ^
Main.cc:3:23: note: ‘long long int q’ previously declared here
 long long n,a[100005],q,x,mid;
                       ^
Main.cc:32:25: error: redefinition of ‘long long int x’
 long long n,a[100005],q,x,mid;
                         ^
Main.cc:3:25: note: ‘long long int x’ previously declared here
 long long n,a[100005],q,x,mid;
                         ^
Main.cc:32:27: error: redefinition of ‘long long int mid’
 long long n,a[100005],q,x,mid;
                           ^~~
Main.cc:3:27: note: ‘long long int mid’ previously declared here
 long long n,a[100005],q,x,mid;
                           ^~~
Main.cc: In function ‘int f(int)’:
Main.cc:33:5: error: redefinition of ‘int f(int)’
 int f(int z){
     ^
Main.cc:4:5: note: ‘int f(int)’ previously defined here
 int f(int z){
     ^
Main.cc:38:7: warning: suggest parentheses around ‘+’ inside ‘>>’ [-Wparentheses]
  mid=l+r>>1;    
      ~^~
Main.cc: In function ‘int main()’:
Main.cc:45:5: error: redefinition of ‘int main()’
 int main(){
     ^~~~
Main.cc:16:5: note: ‘int main()’ previously defined here
 int main(){
     ^~~~
Main.cc:49:18: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
  scanf("%d",&a[i]);     
             ~~~~~^
Main.cc:53:15: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
  scanf("%d",&x);      
             ~~^
Main.cc: In function ‘int main()’:
Main.cc:20:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&a[i]);     
  ~~~~~^~~~~~~~~~~~
Main.cc:24:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&x);      
  ~~~~~^~~~~~~~~
Main.cc: In function ‘int main()’:
Main.cc:49:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&a[i]);     
  ~~~~~^~~~~~~~~~~~
Main.cc:53:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&x);      
  ~~~~~^~~~~~~~~