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

Compile Error

ultimateifelse.cpp: In function ‘int main()’:
ultimateifelse.cpp:19:8: 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 | if(S = "world" && N ==3){
| ~~^~~~~~~~~~~~~~~~~~
| |
| std::__cxx11::basic_string<char>
ultimateifelse.cpp:22:9: error: could not convert ‘S.std::__cxx11::basic_string<char>::operator=(((int)((char)((((const char*)"hmm") != 0) || true))))’ from ‘std::__cxx11::basic_string<char>’ to ‘bool’
22 | if (S = "hmm" || 20){
| ~~^~~~~~~~~~~~~
| |
| std::__cxx11::basic_string<char>
ultimateifelse.cpp:25:6: error: ‘s’ was not declared in this scope
25 | if(s.length > 5){
| ^
ultimateifelse.cpp:28:6: error: ‘s’ was not declared in this scope
28 | if(s.leng