记录详情

Compile Error

foo.cc: In function ‘int Count(std::string)’:
foo.cc:7:29: 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>; size_type = long unsigned int]’ (did you forget the ‘()’ ?)
    7 |         for(int i=0;i<int(s.length);i++)
      |                           ~~^~~~~~
      |                                   ()

信息

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