foo.cc: In function 'int main()':
foo.cc:65:13: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
65 | printf("%I64d", dist(str, g[length][sum]));
| ~~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| int long long int
| %I64lld
foo.cc:25:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
25 | scanf("%d", &length);
| ~~~~~^~~~~~~~~~~~~~~
foo.cc:26:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
26 | scanf("%s", str);
| ~~~~~^~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务