Problem | ultimateifelse |
---|---|
User | blob |
Submission Time | 2023-12-06 14:31:45 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
ultimateifelse.cpp: In function ‘int main()’:
ultimateifelse.cpp:14:13: error: could not convert ‘s.std::__cxx11::basic_string<char>::operator=(((const char*)"hello"))’ 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)((((const char*)"world") != 0) && (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)((((const char*)"hmm") != 0) || (N == 20)))))’ from ‘std::__cxx11::basic_string<char>