dragon2.cpp: In function 'int main()':
dragon2.cpp:31:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
31 | scanf(" %d",&N);
| ~~~~~^~~~~~~~~~
dragon2.cpp:32:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
32 | scanf(" %d",&M);
| ~~~~~^~~~~~~~~~
dragon2.cpp:36:22: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
36 | scanf(" %d %d",&x,&y);
| ~~~~~^~~~~~~~~~~~~~~~
dragon2.cpp:40:22: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
40 | scanf(" %d",&c);
| ~~~~~^~~~~~~~~~
dragon2.cpp:46:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
46 | scanf(" %d",&x);
| ~~~~~^~~~~~~~~~
dragon2.cpp:47:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
47 | scanf(" %d",&y);
| ~~~~~^~~~~~~~~~
dragon2.cpp:51:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
51 | scanf(" %d",&x);
| ~~~~~^~~~~~~~~~
dragon2.cpp:52:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
52 | scanf(" %d",&y);
| ~~~~~^~~~~~~~~~
dragon2.cpp:136:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
136 | scanf(" %d",&Q);
| ~~~~~^~~~~~~~~~
dragon2.cpp:142:22: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
142 | scanf(" %d",&a);
| ~~~~~^~~~~~~~~~
dragon2.cpp:143:22: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
143 | scanf(" %d",&b);
| ~~~~~^~~~~~~~~~