Main.cc:1:1: error: ‘include’ does not name a type; did you mean ‘__has_include’?
include
^~~~~~~
__has_include
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:18:1: error: ‘cin’ was not declared in this scope
cin>>n;
^~~
Main.cc:18:1: note: suggested alternative: ‘main’
cin>>n;
^~~
main
Main.cc:20:2: error: ‘scanf’ was not declared in this scope
scanf("%d",&a[i]);
^~~~~
Main.cc:24:2: error: ‘scanf’ was not declared in this scope
scanf("%d",&x);
^~~~~
Main.cc:26:2: error: ‘cout’ was not declared in this scope
cout<
^~~~~~~
__has_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:47:1: error: ‘cin’ was not declared in this scope
cin>>n;
^~~
Main.cc:47:1: note: suggested alternative: ‘main’
cin>>n;
^~~
main
Main.cc:49:2: error: ‘scanf’ was not declared in this scope
scanf("%d",&a[i]);
^~~~~
Main.cc:53:2: error: ‘scanf’ was not declared in this scope
scanf("%d",&x);
^~~~~
Main.cc:55:2: error: ‘cout’ was not declared in this scope
cout<