Main.cpp: In function 'int main()':
Main.cpp:22:12: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[10]' [-Wformat=]
   22 |   scanf("%8s", &s);
      |          ~~^   ~~
      |            |   |
      |            |   char (*)[10]
      |            char*
Main.cpp:18:17: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   18 |  int L, Q; scanf("%d %d", &L, &Q);
      |            ~~~~~^~~~~~~~~~~~~~~~~
Main.cpp:22:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   22 |   scanf("%8s", &s);
      |   ~~~~~^~~~~~~~~~~
Main.cpp:25:16: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   25 |    int a; scanf("%d", &a); int cur = 0;
      |           ~~~~~^~~~~~~~~~
Main.cpp:39:16: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   39 |    int b; scanf("%d", &b); int cur = 0;
      |           ~~~~~^~~~~~~~~~
Main.cpp:52:16: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   52 |    int k; scanf("%d", &k);
      |           ~~~~~^~~~~~~~~~
Main.cpp:53:35: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   53 |    vi A(k); for(auto& x : A) scanf("%d", &x);
      |                              ~~~~~^~~~~~~~~~