foo.c: In function 'main':
foo.c:6:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long long int *' [-Wformat=]
scanf("%d", &a);
~^ ~~
%lld
foo.c:30:12: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("%d", (f - 1) + cnt * (f - l - 1)*l);
~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%lld
foo.c:44:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("%d", dnt + f);
~^ ~~~~~~~
%lld
foo.c:5:61: warning: unused variable 'e' [-Wunused-variable]
long long a, cnt = 0, dnt = 0, t = 0, f = 0, g = 0, h = 0, e = 0, q = 0, y = 0, l = 0;
^
foo.c:6:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a);
^~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务