Wrong Answer
foo.cc: In function 'void work()':
foo.cc:10:10: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'char*' [-Wformat=]
   10 |  scanf("%d%s",&n ,s); k=0;
      |         ~^    ~~
      |          |    |
      |          int* char*
      |         %hhd
foo.cc:10:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   10 |  scanf("%d%s",&n ,s); k=0;
      |  ~~~~~^~~~~~~~~~~~~~
  Found 10 testcases. [Hydro](https://hydro.ac)提供评测服务