Problem ultimateifelse
User CastyLoz17
Submission Time 2024-02-21 17:38:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ultimateifelse.cpp: In function ‘int main()’:
ultimateifelse.cpp:9:8: error: expected ‘(’ before ‘n’
9 | if n == 1 {
| ^
| (
ultimateifelse.cpp:11:7: error: ‘else’ without a previous ‘if’
11 | } else if n == 9 {
| ^~~~
ultimateifelse.cpp:11:15: error: expected ‘(’ before ‘n’
11 | } else if n == 9 {
| ^
| (
ultimateifelse.cpp:13:7: error: ‘else’ without a previous ‘if’
13 | } else if s == "hello" {
| ^~~~
ultimateifelse.cpp:13:15: error: expected ‘(’ before ‘s’
13 | } else if s == "hello" {
| ^
| (
ultimateifelse.cpp:15:7: error: ‘else’ without a previous ‘if’
15 | } else if s == "world" && n == 3 {
| ^~~~
ultimateifelse.cpp:15:15: error: expected ‘(’ before ‘s’
15 | } else if s == "world" && n == 3 {
| ^