/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:11:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i = 0; i < In.size(); i++)
                 ~~^~~~~~~~~~~
/in/foo.cc:15: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')
            ~~~^~~~

信息

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