nicegift.cpp: In function 'int main()':
nicegift.cpp:13:29: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%I64d%I64d",&n,&k);
~~ ^
nicegift.cpp:13:29: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
nicegift.cpp:16:28: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%I64d",&a[i]);
~~~~~^
nicegift.cpp:46:42: warning: right operand of comma operator has no effect [-Wunused-value]
l = 1 , r = a[las] , mid , can = 1;
^
nicegift.cpp:69:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=1; i<g.size(); i++){
~^~~~~~~~~
nicegift.cpp:79:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<ans.size(); i++){
~^~~~~~~~~~~
nicegift.cpp:80:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0; j<ans[i].size(); j++)
~^~~~~~~~~~~~~~
nicegift.cpp:81:40: warning: format '%d' expects argument of type 'int', but argument 2 has type '__gnu_cxx::__alloc_traits<std::allocator<long long int> >::value_type {aka long long int}' [-Wformat=]
printf("%I64d " , ans[i][j]);
^
nicegift.cpp:14:10: warning: variable 'ok' set but not used [-Wunused-but-set-variable]
bool ok = 1;
^~
nicegift.cpp:27:8: warning: unused variable 'raod' [-Wunused-variable]
ll raod = s / k;
^~~~
nicegift.cpp:13:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%I64d%I64d",&n,&k);
~~~~~^~~~~~~~~~~~~~~~~~~~
nicegift.cpp:16:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%I64d",&a[i]);
~~~~~^~~~~~~~~~~~~~~