joiris.cpp: In function 'int main()':
joiris.cpp:69:29: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'std::vector<long long int>::size_type {aka long unsigned int}' [-Wformat=]
printf("%lld\n",ans1.size());
~~~~~~~~~~~^
joiris.cpp:70:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<ans1.size();i++)
~^~~~~~~~~~~~
joiris.cpp:13:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld %lld",&n,&k);
~~~~~^~~~~~~~~~~~~~~~~~~
joiris.cpp:17:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld",&a[i]);
~~~~~^~~~~~~~~~~~~~