nicegift.cpp: In function 'int main()':
nicegift.cpp:47:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i<add.size();i++){
~^~~~~~~~~~~
nicegift.cpp:55:29: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<std::vector<int> >::size_type {aka long unsigned int}' [-Wformat=]
printf("%d\n",ans.size());
~~~~~~~~~~^
nicegift.cpp:56:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i<ans.size();i++){
~^~~~~~~~~~~
nicegift.cpp:57:25: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("%d ",mns);
^
nicegift.cpp:58:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j<ans[i].size();j++){
~^~~~~~~~~~~~~~
nicegift.cpp:59:37: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}' [-Wformat=]
printf("%lld ",ans[i][j]);
^
nicegift.cpp:9:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&k);
~~~~~^~~~~~~~~~~~~~
nicegift.cpp:14:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld",&a[i].first);
~~~~~^~~~~~~~~~~~~~~~~~~~