foo.c: In function 'main':
foo.c:7:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
7 | for(int x=0;x<n;x++);
| ^~~
foo.c:8:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
8 | {
| ^
foo.c:10:33: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long long int *' [-Wformat=]
10 | scanf("%d%d\n",&a,&b);
| ~^ ~~
| | |
| int * long long int *
| %lld
foo.c:10:35: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long long int *' [-Wformat=]
10 | scanf("%d%d\n",&a,&b);
| ~^ ~~
| | |
| int * long long int *
| %lld
foo.c:12:34: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
12 | printf("%d\n",result);
| ~^ ~~~~~~
| | |
| int long long int
| %lld
[Hydro](https://hydro.ac)提供评测服务