Problem ultimateifelse
User vadar2525
Submission Time 2025-02-17 18:01:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ultimateifelse.cpp: In function ‘int main()’:
ultimateifelse.cpp:11:16: error: expected ‘;’ before ‘:’ token
11 | cout << "one":
| ^
| ;
ultimateifelse.cpp:14:14: error: expected ‘;’ before ‘:’ token
14 | cout << "9":
| ^
| ;
ultimateifelse.cpp:21:2: error: expected ‘}’ before ‘else’
21 | else if ( S == "hmm" and n==20 ){
| ^~~~
ultimateifelse.cpp:19:34: note: to match this ‘{’
19 | else if (S == "world" and n==3 ){
| ^
ultimateifelse.cpp:23:3: error: expected ‘}’ before ‘else’
23 | else if (s.length90() ){
| ^~~~
ultimateifelse.cpp:21:34: note: to match this ‘{’
21 | else if ( S == "hmm" and n==20 ){
| ^
ultimateifelse.cpp:23:12: error: ‘s’ was not declared in this scope
23 | else if (s.length90() ){