foo.cc: In function 'void change_lowercase(std::string&)':
foo.cc:10:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
10 | for(int i = 0; i < s.size(); i++)
| ~~^~~~~~~~~~
foo.cc: In function 'void cutpair(std::string, std::vector<codepair>&)':
foo.cc:30:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
30 | while(s[i] == ' ' && i < s.size()) cout << ' ', ++i;
| ~~^~~~~~~~~~
foo.cc:31:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
31 | while(i < s.size()) {
| ~~^~~~~~~~~~
foo.cc: In function 'void putdecode(codepair)':
foo.cc:56:31: warning: array subscript has type 'char' [-Wchar-subscripts]
56 | pair<int, int> a = mapcode[p.f];
| ~~^
foo.cc:57:31: warning: array subscript has type 'char' [-Wchar-subscripts]
57 | pair<int, int> b = mapcode[p.r];
| ~~^
foo.cc: In function 'int main()':
foo.cc:91:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
91 | for(int i = 0; i < k.size(); i++) {
| ~~^~~~~~~~~~
foo.cc:93:19: warning: array subscript has type 'char' [-Wchar-subscripts]
93 | else if(uni[k[i]]) continue;
| ^
foo.cc:96:12: warning: array subscript has type 'char' [-Wchar-subscripts]
96 | uni[k[i]] = true, mapcode[k[i]] = make_pair(p, q);
| ^
foo.cc:96:34: warning: array subscript has type 'char' [-Wchar-subscripts]
96 | uni[k[i]] = true, mapcode[k[i]] = make_pair(p, q);
| ^
foo.cc:128:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<codepair>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
128 | for(int i = 0; i < v.size(); i++) {
| ~~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务