foo.cc: In function ‘int main()’:
foo.cc:8:19: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else]
8 | if(a>b)
| ^
foo.cc:16:19: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else]
16 | if(b>a)
| ^
foo.cc:24:20: warning: ‘mid’ may be used uninitialized [-Wmaybe-uninitialized]
24 | cout<<mid<<" "<<max<<endl;
| ^~~
foo.cc:6:19: note: ‘mid’ was declared here
6 | int a,b,c,mid,max;
| ^~~
foo.cc:24:25: warning: ‘max’ may be used uninitialized [-Wmaybe-uninitialized]
24 | cout<<mid<<" "<<max<<endl;
| ^~~
foo.cc:6:23: note: ‘max’ was declared here
6 | int a,b,c,mid,max;
| ^~~