/ AOCode /

记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
递交
题目
P1015 Mission 2 - A1 : Crack the Code! (EASY)
语言
C++
递交时间
2021-08-21 16:03:52
评测时间
2021-08-21 16:13:00
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes