bitaro.cpp:54:7: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main () {
^
bitaro.cpp: In function 'int main()':
bitaro.cpp:55:12: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &n,&m,&qy);
~~~~~^~~~~~~~~~~~~~~~~~~~~
bitaro.cpp:58:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &l,&r);
~~~~~^~~~~~~~~~~~~~~
bitaro.cpp:10:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
#define scan(a) scanf ("%d", &a)
~~~~~~^~~~~~~~~~
bitaro.cpp:62:7: note: in expansion of macro 'scan'
scan(t);scan(y);
^~~~
bitaro.cpp:10:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
#define scan(a) scanf ("%d", &a)
~~~~~~^~~~~~~~~~
bitaro.cpp:62:15: note: in expansion of macro 'scan'
scan(t);scan(y);
^~~~
bitaro.cpp:70:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x);
~~~~~^~~~~~~~~~