/in/foo.cc: In function 'int main()':
/in/foo.cc:6:17: warning: format '%i' expects argument of type 'int*', but argument 2 has type 'double*' [-Wformat=]
6 | scanf("%if",&x);
| ~^ ~~
| | |
| | double*
| int*
| %le
/in/foo.cc:9:18: warning: init-statement in selection statements only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions]
9 | }else if(x>0&&x<10{
| ^
/in/foo.cc:9:27: error: expected ';' before '{' token
9 | }else if(x>0&&x<10{
| ^
| ;
/in/foo.cc:9:21: warning: statement has no effect [-Wunused-value]
9 | }else if(x>0&&x<10{
| ~~~^~~~~~
/in/foo.cc:11:10: error: expected primary-expression before 'else'
11 | }else if(x>=10&&x<25){
| ^~~~
/in/foo.cc:11:10: error: expected ')' before 'else'
11 | }else if(x>=10&&x<25){
| ^~~~
| )
/in/foo.cc:9:17: note: to match this '('
9 | }else if(x>0&&x<10{
| ^