Problem ultimateifelse
User isaackhong
Submission Time 2023-01-13 15:23:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ultimateifelse.cpp: In function ‘int main()’:
ultimateifelse.cpp:16:21: error: could not convert ‘word.std::__cxx11::basic_string<char>::operator=(((int)((char)((((const char*)"world") != 0) && (numb == 3)))))’ from ‘std::__cxx11::basic_string<char>’ to ‘bool’
16 | } else if (word = "world" && numb == 3){
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
| |
| std::__cxx11::basic_string<char>
ultimateifelse.cpp:18:21: error: could not convert ‘word.std::__cxx11::basic_string<char>::operator=(((int)((char)((((const char*)"hmmm") != 0) || (numb == 20)))))’ from ‘std::__cxx11::basic_string<char>’ to ‘bool’
18 | } else if (word = "hmmm" || numb == 20){
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
| |
| std::__cxx11::basic_string<char>
ultimateifelse.cpp:25:16: error: ‘n’ was not declared in this sco