joiris.cpp: In function 'int main()':
joiris.cpp:23:11: warning: format '%i' expects argument of type 'int', but argument 2 has type 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wformat=]
23 | printf("%i\n",ans.size());
| ~^ ~~~~~~~~~~
| | |
| int std::vector<std::pair<int, int> >::size_type {aka long unsigned int}
| %li
joiris.cpp:9:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
9 | scanf("%i %i",&n,&k);
| ~~~~~^~~~~~~~~~~~~~~
joiris.cpp:10:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
10 | for(int i=0;i<n;i++)scanf("%i",&a[i]),rem[i%k]=(rem[i%k]+a[i])%k;
| ~~~~~^~~~~~~~~~~~