foo.c: In function 'main':
foo.c:8:17: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long long int *' [-Wformat=]
8 | scanf("%d\n",&x);
| ~^ ~~
| | |
| | long long int *
| int *
| %lld
foo.c:15:18: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
15 | printf("%d\n",result);
| ~^ ~~~~~~
| | |
| int long long int
| %lld
foo.c:5:21: warning: unused variable 'i' [-Wunused-variable]
5 | long long int x,i;
| ^
[Hydro](https://hydro.ac)提供评测服务