tenis.cpp: In function 'int main()':
tenis.cpp:29:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   29 |     scanf("%d %d" , &N,&Q);
      |     ~~~~~^~~~~~~~~~~~~~~~~
tenis.cpp:31:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   31 |         scanf("%d" , &rnk[i][j]);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~
tenis.cpp:37:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   37 |         scanf("%d" ,&cmd);
      |         ~~~~~^~~~~~~~~~~~
tenis.cpp:39:25: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   39 |             int t; scanf("%d" , &t);
      |                    ~~~~~^~~~~~~~~~~
tenis.cpp:44:28: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   44 |             int i,a,b;scanf("%d %d %d" , &i,&a,&b);
      |                       ~~~~~^~~~~~~~~~~~~~~~~~~~~~~