/in/foo.cc: In function 'int main()':
/in/foo.cc:7:12: warning: init-statement in selection statements only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions]
7 | if(int i=b;i<=c;i++)
| ^~~
/in/foo.cc:7:24: error: expected ')' before ';' token
7 | if(int i=b;i<=c;i++)
| ~ ^
| )
/in/foo.cc:7:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
7 | if(int i=b;i<=c;i++)
| ^~
/in/foo.cc:7:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
7 | if(int i=b;i<=c;i++)
| ^
/in/foo.cc:7:25: error: 'i' was not declared in this scope