Problem ultimateifelse
User blob
Submission Time 2023-12-06 14:34:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ultimateifelse.cpp: In function ‘int main()’:
ultimateifelse.cpp:14:13: error: could not convert ‘s.std::__cxx11::basic_string<char>::operator=(111)’ from ‘std::__cxx11::basic_string<char>’ to ‘bool’
14 | else if (s = 'hello'){
| ~~^~~~~~~~~
| |
| std::__cxx11::basic_string<char>
ultimateifelse.cpp:17:13: error: could not convert ‘s.std::__cxx11::basic_string<char>::operator=(((int)((char)(true && (N == 3)))))’ from ‘std::__cxx11::basic_string<char>’ to ‘bool’
17 | else if (s = 'world' and N == 3){
| ~~^~~~~~~~~~~~~~~~~~~~
| |
| std::__cxx11::basic_string<char>
ultimateifelse.cpp:20:13: error: could not convert ‘s.std::__cxx11::basic_string<char>::operator=(((int)((char)(true || (N == 20)))))’ from ‘std::__cxx11::basic_string<char>’ to ‘bool’
20 | else if (s = 'hmm' or N == 20){
|