foo.cc: In function 'int main()':
foo.cc:10:17: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
10 | if(str1.size() == size) {
| ~~~~~~~~~~~~^~~~~~~
foo.cc:15:20: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
15 | while(str1.size() < size){
| ~~~~~~~~~~~~^~~~~~
[Hydro](https://hydro.ac)提供评测服务