运行 ID: 343336

Main.cc: In function ‘int f(int)’:
Main.cc:8:11: warning: suggest parentheses around ‘+’ inside ‘>>’ [-Wparentheses]
      mid=l+r>>1;
          ~^~
Main.cc: In function ‘int main()’:
Main.cc:18:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
      scanf("%d",&a[i]);
                 ~~~~~^
Main.cc:22:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
      scanf("%d",&x);
                 ~~^
Main.cc:27:13: error: expected ‘}’ at end of input
     return 0;
             ^
Main.cc:18:11: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
      scanf("%d",&a[i]);
      ~~~~~^~~~~~~~~~~~
Main.cc:22:11: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
      scanf("%d",&x);
      ~~~~~^~~~~~~~~