copypaste3.cpp: In function 'int main()':
copypaste3.cpp:11:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   11 |         scanf(" %d",&t);
      |         ~~~~~^~~~~~~~~~
copypaste3.cpp:15:22: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   15 |                 scanf(" %d",&N);
      |                 ~~~~~^~~~~~~~~~
copypaste3.cpp:16:22: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   16 |                 scanf(" %d",&M);
      |                 ~~~~~^~~~~~~~~~