foo.cc: In function 'int main()':
foo.cc:9:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
9 | for (int i = 0; i < A.size(); i++) {
| ~~^~~~~~~~~~
foo.cc:10:9: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
10 | if (i == A.size() - 1 && (A[i] > '9' || A[i] < '0'))
| ~~^~~~~~~~~~~~~~~
foo.cc:23:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
23 | for (int i = 0; i < a.size(); i++)
| ~~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务