bitaro.cpp: In function 'void pre_process()':
bitaro.cpp:41:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(l < pre[u].size() && r < pre[v].size()) {
~~^~~~~~~~~~~~~~~
bitaro.cpp:41:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(l < pre[u].size() && r < pre[v].size()) {
~~^~~~~~~~~~~~~~~
bitaro.cpp:46:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(l < pre[u].size()) {
~~^~~~~~~~~~~~~~~
bitaro.cpp:50:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(r < pre[v].size()) {
~~^~~~~~~~~~~~~~~
bitaro.cpp: In function 'int main()':
bitaro.cpp:64:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d", &n, &m, &q);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
bitaro.cpp:66:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &a, &b);
~~~~~^~~~~~~~~~~~~~~~~
bitaro.cpp:72:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &t, &y);
~~~~~^~~~~~~~~~~~~~~~~
bitaro.cpp:74:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a);
~~~~~^~~~~~~~~~