/in/foo.c: In function 'main':
/in/foo.c:25:31: error: invalid suffix ";" on integer constant
25 | int b=(n/100)%10;
| ^~~~
/in/foo.c:26:17: error: expected ',' or ';' before 'int'
26 | int c=(n/10)%10;
| ^~~
/in/foo.c:28:44: error: 'c' undeclared (first use in this function)
28 | printf("%d %d %d %d\n",a,b,c,d,);
| ^
/in/foo.c:28:44: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:28:48: error: expected expression before ')' token
28 | printf("%d %d %d %d\n",a,b,c,d,);
| ^
/in/foo.c:31:14: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
31 | else if(digits==3);
| ^~
/in/foo.c:32:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
32 | {
| ^
/in/foo.c:39:9: error: 'else' without a previous 'if'
39 | else if(digits==2);
| ^~~~
/in/foo.c:39:14: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
39 | else if(digits==2);
| ^~
/in/foo.c:40:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
40 | {
| ^
/in/foo.c:44:26: warning: format '%d' expects a matching 'int' argument [-Wformat=]
44 | printf("%d%d%d\n",b,a);
| ~^
| |
| int
/in/foo.c:46:9: error: 'else' without a previous 'if'
46 | else if(digits=1);
| ^~~~
/in/foo.c:46:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
46 | else if(digits=1);
| ^~~~~~