servers.cpp: In function 'int main()':
servers.cpp:12:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'char*' [-Wformat=]
   12 |         scanf("%d", &c); scanf("%d", &c);
      |                ~^   ~~
      |                 |   |
      |                 |   char*
      |                 int*
      |                %hhd
servers.cpp:12:34: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'char*' [-Wformat=]
   12 |         scanf("%d", &c); scanf("%d", &c);
      |                                 ~^   ~~
      |                                  |   |
      |                                  |   char*
      |                                  int*
      |                                 %hhd
servers.cpp:10:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   10 |     scanf("%d%d", &n, &q);
      |     ~~~~~^~~~~~~~~~~~~~~~
servers.cpp:12:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   12 |         scanf("%d", &c); scanf("%d", &c);
      |         ~~~~~^~~~~~~~~~
servers.cpp:12:31: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   12 |         scanf("%d", &c); scanf("%d", &c);
      |                          ~~~~~^~~~~~~~~~
servers.cpp:14:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   14 |             scanf("%d%d", &a, &b);
      |             ~~~~~^~~~~~~~~~~~~~~~
servers.cpp:20:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   20 |             scanf("%d%d", &a, &b); // does a store b
      |             ~~~~~^~~~~~~~~~~~~~~~