Home STD Contest Notification Clarification Problems Ranklist Status Print Sign Out

View Compilation Error

1_858_106_8935.cpp: In function 'int main()':
1_858_106_8935.cpp:17:5: error: cannot convert 'std::basic_string<_CharT, _Traits, _Alloc>::length<char, std::char_traits<char>, std::allocator<char> >' from type 'std::basic_string<char>::size_type (std::basic_string<char>::)() const noexcept {aka long long unsigned int (std::basic_string<char>::)() const noexcept}' to type 'int'
   c = a.length;
     ^
1_858_106_8935.cpp:18:5: error: cannot convert 'std::basic_string<_CharT, _Traits, _Alloc>::length<char, std::char_traits<char>, std::allocator<char> >' from type 'std::basic_string<char>::size_type (std::basic_string<char>::)() const noexcept {aka long long unsigned int (std::basic_string<char>::)() const noexcept}' to type 'int'
   d = b.length;
     ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-06-29 11:12:39, Gzip enabled