foo.c: In function 'main':
foo.c:16:26: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
16 | printf("%d ", b);
| ~^ ~
| | |
| int long long int
| %lld
foo.c:18:34: warning: implicit declaration of function 'pow' [-Wimplicit-function-declaration]
18 | for(c=1;c!=0;c=b/pow(10,n))
| ^~~
foo.c:2:1: note: include '<math.h>' or provide a declaration of 'pow'
1 | #include <stdio.h>
+++ |+#include <math.h>
2 |
foo.c:18:34: warning: incompatible implicit declaration of built-in function 'pow' [-Wbuiltin-declaration-mismatch]
18 | for(c=1;c!=0;c=b/pow(10,n))
| ^~~
foo.c:18:34: note: include '<math.h>' or provide a declaration of 'pow'
[Hydro](https://hydro.ac)提供评测服务