foo.cc: In function 'void Findmax(int*, int)':
foo.cc:27:20: warning: variable 'm' set but not used [-Wunused-but-set-variable]
  int max = arr[0], m = 0;
                    ^
foo.cc: In function 'int main()':
foo.cc:8:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d %d", &n, &p);
  ~~~~~^~~~~~~~~~~~~~~~~
foo.cc:11:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d", &a[i]);
   ~~~~~^~~~~~~~~~~~~
foo.cc:17:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d", &b[j]);
   ~~~~~^~~~~~~~~~~~~
   
  
    [Hydro](https://hydro.ac)提供评测服务