/in/foo.cc: In function 'int main()':
/in/foo.cc:49:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(rc > s && abs(s - rc) > ls)
~~~~~~~~~~~~^~~~
/in/foo.cc:55:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(abs(s - rc) < ls)
~~~~~~~~~~~~^~~~
/in/foo.cc:61:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(abs(s - rc) < ls)
~~~~~~~~~~~~^~~~
/in/foo.cc:16:24: warning: unused variable 'ctr' [-Wunused-variable]
unsigned long long ctr, cvr, ls = 0xFFFFFFFFFFFFFFFFLL;
^~~
/in/foo.cc:16:29: warning: unused variable 'cvr' [-Wunused-variable]
unsigned long long ctr, cvr, ls = 0xFFFFFFFFFFFFFFFFLL;
^~~
/in/foo.cc:69:3: warning: 'mid' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(w[i] >= mid)
^~