Problem ultimateifelse
User notachicken
Submission Time 2026-04-17 15:18:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ultimateifelse.cpp: In function ‘int main()’:
ultimateifelse.cpp:14:14: 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:33:12: error: expected ‘;’ before ‘}’ token
33 | "clown"
| ^
| ;
34 | }
| ~