foo.cc: In function 'int qmax(int&, int)':
foo.cc:7:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
foo.cc: In function 'int qmin(int&, int)':
foo.cc:12:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
foo.cc: In function 'int read()':
foo.cc:17:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
     while((s=getchar())!='-'&&s!=EOF&&!(isdigit(s)));
     ^~~~~
foo.cc:18:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
      if(s==EOF)
      ^~
   
  
    [Hydro](https://hydro.ac)提供评测服务