foo.cc: In function 'int FindiSecondMax(int*, int)':
foo.cc:6:9: warning: variable 'max' set but not used [-Wunused-but-set-variable]
int max = 0;
^~~
foo.cc:15:9: warning: variable 'xmax' set but not used [-Wunused-but-set-variable]
int xmax = 0;
^~~~
foo.cc: In function 'int main()':
foo.cc:31:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &m, &n);
~~~~~^~~~~~~~~~~~~~~~
foo.cc:33:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a[i]);
~~~~~^~~~~~~~~~~~~
foo.cc:35:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &b[i]);
~~~~~^~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务