foo.cc:1:21: warning: character constant too long for its type
foo.cc: In function 'void change_lowercase(std::__cxx11::string&)':
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:5:21: warning: character constant too long for its type
foo.cc: In function 'void cutpair(std::__cxx11::string, std::vector<codepair>&)':
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:12:21: warning: character constant too long for its type
foo.cc: In function 'void putdecode(codepair)':
^~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:13:49: warning: multi-character character constant [-Wmultichar]
foo.cc:56:32: warning: array subscript has type 'char' [-Wchar-subscripts]
^~~~~~
foo.cc:16:49: warning: multi-character character constant [-Wmultichar]
foo.cc:57:32: warning: array subscript has type 'char' [-Wchar-subscripts]
^~~~~~
foo.cc:19:21: warning: character constant too long for its type
foo.cc: In function 'int main()':
^~~~~~~~~~~~
foo.cc:23:49: warning: multi-character character constant [-Wmultichar]
foo.cc:93:19: warning: array subscript has type 'char' [-Wchar-subscripts]
^~~~~~
foo.cc:26:49: warning: multi-character character constant [-Wmultichar]
foo.cc:96:12: warning: array subscript has type 'char' [-Wchar-subscripts]
^~~~~~
foo.cc:29:49: warning: multi-character character constant [-Wmultichar]
foo.cc:96:34: warning: array subscript has type 'char' [-Wchar-subscripts]
^~~~~~
foo.cc:1:1: error: 'foo' does not name a type; did you mean 'bool'?
foo.cc: In function 'void change_lowercase(std::__cxx11::string&)':
^~~
bool
foo.cc:3:18: error: 'i' does not name a type
for(int i = 0; i < s.size(); i++)
^
foo.cc:3:32: error: 'i' does not name a type
for(int i = 0; i < s.size(); i++)
^
foo.cc:8:25: error: expected class-name before '~' token
~~^~~~~~~~~~
^
[Hydro](https://hydro.ac)提供评测服务