foo.cc: In function 'char* StringReplace(std::string&, std::string&, std::string&)':
foo.cc:89:29: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
89 | while (nParentIndex < strParentString.size())
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:94:42: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
94 | while (nSubIndex < strReplace.size())
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
foo.cc:102:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Coordinate>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
102 | if (nRange == vtCoordinate.size())
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc:104:53: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
104 | while (nParentIndex < strParentString.size())
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'int main(int, char**)':
foo.cc:147:9: error: 'gets_s' was not declared in this scope; did you mean 'gets'?
147 | gets_s(ary_cParent);
| ^~~~~~
| gets
[Hydro](https://hydro.ac)提供评测服务