Problem | ultimateifelse |
---|---|
User | PrunJuice |
Submission Time | 2023-10-22 17:45:44 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
ultimateifelse.cpp: In function ‘int main()’:
ultimateifelse.cpp:8:34: error: ‘else’ without a previous ‘if’
8 | if (int N = 1) {cout << "one";}; else {cout << "clown"};
| ^~~~
ultimateifelse.cpp:8:55: error: expected ‘;’ before ‘}’ token
8 | if (int N = 1) {cout << "one";}; else {cout << "clown"};
| ^
| ;
ultimateifelse.cpp:9:28: error: expected ‘;’ before ‘}’ token
9 | if (int N = 9) {cout << "9"}; else {cout << "clown"};
| ^
| ;
ultimateifelse.cpp:9:31: error: ‘else’ without a previous ‘if’
9 | if (int N = 9) {cout << "9"}; else {cout << "clown"};
| ^~~~
ultimateifelse.cpp:9:52: error: expected ‘;’ before ‘}’ token