prog.cpp: In function ‘int main()’:
prog.cpp:30:14: 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 (text[1].size>text[2].size) {
~~~~~~~~^~~~
prog.cpp:30:27: 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 (text[1].size>text[2].size) {
~~~~~~~~^~~~
prog.cpp:31:18: error: cannot convert ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size<char, std::char_traits<char>, std::allocator<char> >’ from type ‘std::__cxx11::basic_string<char>::size_type (std::__cxx11::basic_string<char>::)() const noexcept {aka long unsigned int (std::__cxx11::basic_string<char>::)() const noexcept}’ to type ‘int’
maxLen=text[1].size;
^~~~
prog.cpp:33:18: error: cannot convert ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size<char, std::char_traits<char>, std::allocator<char> >’ from type ‘std::__cxx11::basic_string<char>::size_type (std::__cxx11::basic_string<char>::)() const noexcept {aka long unsigned int (std::__cxx11::basic_string<char>::)() const noexcept}’ to type ‘int’
maxLen=text[2].size;
^~~~
prog.cpp:45:7: error: ‘i’ was not declared in this scope
for (i;i<=4;++i){
^