foo.cc: In function 'void dts::main()':
foo.cc:151:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (ll i=0;i<x.size();i++)
~^~~~~~~~~
foo.cc:156:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (i<x.size())
~^~~~~~~~~
foo.cc: In function 'dts::ll dts::search(dts::ll)':
foo.cc:130:2: warning: control reaches end of non-void function [-Wreturn-type]
}
^
foo.cc: In function 'void dts::main()':
foo.cc:134:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld%lld",&n,&q);
~~~~~^~~~~~~~~~~~~~~~~~
foo.cc:138:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld",&ctl[i]);
~~~~~^~~~~~~~~~~~~~~~
foo.cc:140:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld%lld",&pos[i],&val[i]);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:142:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld",&val[i]);
~~~~~^~~~~~~~~~~~~~~~
foo.cc:144:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld",&pos[i]);
~~~~~^~~~~~~~~~~~~~~~
foo.cc:167:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld",&t);
~~~~~^~~~~~~~~~~
foo.cc:169:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld%lld",&a[i],&b[i]);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~