记录详情

Compile Error

/in/foo.cc: In function 'bool part(std::__cxx11::string&, std::__cxx11::string&)':
/in/foo.cc:27:15: error: 'std::__cxx11::string {aka class std::__cxx11::basic_string<char>}' has no member named 'szie'; did you mean 'size'?
  while (j < b.szie() && ++i < a.size())
               ^~~~
/in/foo.cc:27:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  while (j < b.szie() && ++i < a.size())
                         ~~~~^~~~~~~~~~
/in/foo.cc:28:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   while (++j < b.size() && b[j] != a[i]);
          ~~~~^~~~~~~~~~
/in/foo.cc:29:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  return j <= b.size();
         ~~^~~~~~~~~~~

信息

递交者
类型
自测
题目
P1402 Problem 4B. 后缀机器
语言
C++
递交时间
2023-05-14 20:38:08
评测时间
2023-05-14 20:38:08
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes