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

Compile Error

ultimateifelse.cpp: In function ‘int main()’:
ultimateifelse.cpp:17:18: error: could not convert ‘b.std::__cxx11::basic_string<char>::operator=(((const char*)"hello"))’ from ‘std::__cxx11::basic_string<char>’ to ‘bool’
17 | } else if (b = "hello") {
| ~~^~~~~~~~~
| |
| std::__cxx11::basic_string<char>
ultimateifelse.cpp:25:32: error: request for member ‘length’ in ‘a’, which is of non-class type ‘int’
25 | } else if (b.length() == a.length()) {
| ^~~~~~
ultimateifelse.cpp:27:16: error: ‘n’ was not declared in this scope
27 | } else if (n % 2 == 0) {
| ^