bridge.cpp: In function 'void solve2()':
bridge.cpp:73:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j=0; j<lo.size(); j++) temp += abs(lo[j] - lo[lo.size()/2]);
~^~~~~~~~~~
bridge.cpp:74:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j=0; j<hi.size(); j++) temp += abs(hi[j] - hi[hi.size()/2]);
~^~~~~~~~~~
bridge.cpp: In function 'void solve1()':
bridge.cpp:12:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%c %d %c %d\n", &x, &u, &y, &v);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bridge.cpp: In function 'void solve2()':
bridge.cpp:41:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%c %d %c %d\n", &x, &u, &y, &v);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bridge.cpp: In function 'int main()':
bridge.cpp:83:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d\n", &K, &N);
~~~~~^~~~~~~~~~~~~~~~~~