Problem typoswap
User Akshar
Submission Time 2024-06-21 12:48:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

typoswap.cpp: In function ‘int main()’:
typoswap.cpp:6:17: error: expected primary-expression before ‘>’ token
6 | while(a.length=>1&&a.length<=20&&b.length=>1&&b.length<=20){
| ^
typoswap.cpp:6:23: 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>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’ (did you forget the ‘()’ ?)
6 | while(a.length=>1&&a.length<=20&&b.length=>1&&b.length<=20){
| ~~^~~~~~
| ()
typoswap.cpp:6:44: error: expected primary-expression before ‘>’ token
6 | while(a.length=>1&&a.length<=20&&b.length=>1&&b.length<=20){
|