zalmoxis.cpp: In function 'int main()':
zalmoxis.cpp:36:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < dq.size(); i ++)
~~^~~~~~~~~~~
zalmoxis.cpp:44:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(pos < vec.size() && vec[pos].first <= i){
~~~~^~~~~~~~~~~~
zalmoxis.cpp:59:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0; j < dq.size(); j ++)
~~^~~~~~~~~~~
zalmoxis.cpp:61:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0; j < vv.size(); j ++)
~~^~~~~~~~~~~
zalmoxis.cpp:65:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(pos < vec.size()){
~~~~^~~~~~~~~~~~
zalmoxis.cpp:80:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0; j < dq.size(); j ++)
~~^~~~~~~~~~~
zalmoxis.cpp:82:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0; j < vv.size(); j ++)
~~^~~~~~~~~~~
zalmoxis.cpp:12:12: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &k);
~~~~~^~~~~~~~~~~~~~~~~
zalmoxis.cpp:15:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a[i]);
~~~~~^~~~~~~~~~~~~