运行 ID: 431675

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<