/in/foo.cc: In function 'int search()':
/in/foo.cc:35:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:76:24: warning: left operand of comma operator has no effect [-Wunused-value]
for(int i=end1,j=end2;i<=n,j<=m;i++,j++){
~^~~
/in/foo.cc:80:24: warning: left operand of comma operator has no effect [-Wunused-value]
for(int i=end1,j=end2;i>=1,j>=1;i--,j--){
~^~~
/in/foo.cc:84:24: warning: left operand of comma operator has no effect [-Wunused-value]
for(int i=end1,j=end2;i<=n,j>=1;i++,j--){
~^~~
/in/foo.cc:88:28: warning: left operand of comma operator has no effect [-Wunused-value]
for(int i=end1,j=end2;i,j<=m;i--,j++){
^