/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:12:24: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() 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 < In.size; i++)
                     ~~~^~~~
/in/foo.cc:16:15: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() 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 '()' ?)
    if(i == In.size - 1 && In[i] = 'X')
            ~~~^~~~
/in/foo.cc:8:9: warning: unused variable 'last' [-Wunused-variable]
     int last;
         ^~~~

信息

递交者
类型
递交
题目
P1484 ISBN号码
语言
C++
递交时间
2020-07-12 18:34:21
评测时间
2020-07-12 18:34:21
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes