Problem ultimateifelse
User Benroy
Submission Time 2023-01-11 17:43:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ultimateifelse.cpp: In function ‘int main()’:
ultimateifelse.cpp:19:13: error: could not convert ‘S.std::__cxx11::basic_string<char>::operator=(((int)((char)((((const char*)"world") != 0) && (N == 3)))))’ from ‘std::__cxx11::basic_string<char>’ to ‘bool’
19 | else if(S = "world" && N ==3){
| ~~^~~~~~~~~~~~~~~~~~
| |
| std::__cxx11::basic_string<char>
ultimateifelse.cpp:22:14: error: could not convert ‘S.std::__cxx11::basic_string<char>::operator=(((int)((char)((((const char*)"hmm") != 0) || (N == 20)))))’ from ‘std::__cxx11::basic_string<char>’ to ‘bool’
22 | else if (S = "hmm" || N ==20){
| ~~^~~~~~~~~~~~~~~~~
| |
| std::__cxx11::basic_string<char>
ultimateifelse.cpp:25:13: error: invalid use of member function ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_st