foo.cc: In function 'int main()':
foo.cc:85:13: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
   85 |         gets(a);
      |         ~~~~^~~
In file included from foo.cc:2:
/nix/store/y8wfrgk7br5rfz4221lfb9v8w3n0cnyd-glibc-2.37-8-dev/include/stdio.h:605:14: note: declared here
  605 | extern char *gets (char *__s) __wur __attribute_deprecated__;
      |              ^~~~
foo.cc:102:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<StatUnit>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  102 |                 for (j = 0; j < vtStatResult.size(); j++)
      |                             ~~^~~~~~~~~~~~~~~~~~~~~
foo.cc:114:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<StatUnit>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  114 |                 if (j == vtStatResult.size())
      |                     ~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc:124:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<StatUnit>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  124 |         for (int i = 0; i < vtStatResult.size(); i++)
      |                         ~~^~~~~~~~~~~~~~~~~~~~~
/nix/store/74y3751gsixaz9797ib0hp7c658sp1y5-binutils-2.40/bin/ld: /tmp/ccTr48ea.o: in function `main':
foo.cc:(.text.startup+0x1a): warning: the `gets' function is dangerous and should not be used.
   
  
    [Hydro](https://hydro.ac)提供评测服务