foo.cc: In function ‘int main()’:
foo.cc:16:20: warning: init-statement in selection statements only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
16 | if(c<a)
| ^
foo.cc:16:22: error: ‘a)’ was not declared in this scope
16 | if(c<a)
| ^~~
foo.cc:18:17: error: expected primary-expression before ‘else’
18 | else
| ^~~~
foo.cc:17:50: error: expected ‘)’ before ‘else’
17 | cout<<b<<"<"<<a<<"<"<<c<<endl;
| ^
| )
18 | else
| ~~~~
foo.cc:16:19: note: to match this ‘(’
16 | if(c<a)
| ^
foo.cc:5:19: warning: unused variable ‘min’ [-Wunused-variable]
5 | int a,b,c,min;
| ^~~