Problem ultimateifelse
User GuzzaGamu
Submission Time 2026-03-19 21:29:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ultimateifelse.cpp: In function ‘int main()’:
ultimateifelse.cpp:16:18: error: could not convert ‘b.std::__cxx11::basic_string<char>::operator=(((const char*)"hello"))’ from ‘std::__cxx11::basic_string<char>’ to ‘bool’
16 | } else if (b = "hello") {
| ~~^~~~~~~~~
| |
| std::__cxx11::basic_string<char>
ultimateifelse.cpp:22:16: error: ‘len’ was not declared in this scope; did you mean ‘mblen’?
22 | } else if (len(b) > 5) {
| ^~~
| mblen
ultimateifelse.cpp:26:16: error: ‘n’ was not declared in this scope
26 | } else if (n % 2 == 0) {
| ^