记录详情

Compile Error

/in/foo.cc: In function 'int Count(std::__cxx11::string)':
/in/foo.cc:7:22: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]' (did you forget the '()' ?)
  for(int i=0;i<int(s.length);i++)
                    ~~^~~~~~

信息

递交者
类型
递交
题目
A8-2 字符串的统计函数
语言
C++
递交时间
2024-04-05 10:51:27
评测时间
2024-04-05 10:51:27
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes