foo.c:2:10: error: #include expects "FILENAME" or <FILENAME>
2 | #include (std10.h)
| ^
foo.c:3:10: error: #include expects "FILENAME" or <FILENAME>
3 | #include ‹stolib.h)
| ^
foo.c: In function 'main':
foo.c:7:1: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
7 | scanf("%d",&n);
| ^~~~~
foo.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
+++ |+#include <stdio.h>
1 |
foo.c:7:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
7 | scanf("%d",&n);
| ^~~~~
foo.c:7:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
foo.c:8:5: error: 'ien' undeclared (first use in this function)
8 | for(ien;i>=1;i=1/10)
| ^~~
foo.c:8:5: note: each undeclared identifier is reported only once for each function it appears in
foo.c:12:1: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
12 | printf("temp=%d n=%d %d\n",temp,n,i);
| ^~~~~~
foo.c:12:1: note: include '<stdio.h>' or provide a declaration of 'printf'
foo.c:12:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
foo.c:12:1: note: include '<stdio.h>' or provide a declaration of 'printf'
foo.c:14:25: error: expected ';' before 'sl'
14 | printf("sum=%d\n" , sum) sl
| ^~~
| ;
foo.c:16:9: error: expected declaration or statement at end of input
16 | }
| ^
foo.c:16:9: error: expected declaration or statement at end of input
[Hydro](https://hydro.ac)提供评测服务