foo.cc: In function 'int main()':
foo.cc:8:20: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[10]' [-Wformat=]
    8 |     while(~scanf("%s %s",&a,&b))
      |                   ~^     ~~
      |                    |     |
      |                    char* char (*)[10]
foo.cc:8:23: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'char (*)[10]' [-Wformat=]
    8 |     while(~scanf("%s %s",&a,&b))
      |                      ~^     ~~
      |                       |     |
      |                       char* char (*)[10]
foo.cc:11:23: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
   11 |         for(int i=0; i<strlen(a); i++)
      |                      ~^~~~~~~~~~
foo.cc:16:23: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
   16 |         for(int i=0; i<strlen(b); i++)
      |                      ~^~~~~~~~~~
   
  
    Found 5 testcases.
[Hydro](https://hydro.ac)提供评测服务