Problem | ultimateifelse |
---|---|
User | CastyLoz17 |
Submission Time | 2024-03-01 15:27:36 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
ultimateifelse.cpp: In function ‘int main()’:
ultimateifelse.cpp:5:31: error: expected ‘;’ before ‘if’
5 | int n; string s; cin>>n>>s
| ^
| ;
6 | if (n==1) {
| ~~
ultimateifelse.cpp:8:7: error: ‘else’ without a previous ‘if’
8 | } else if (n==9) {
| ^~~~
ultimateifelse.cpp:19:21: error: expected ‘;’ before ‘}’ token
19 | cout<<"long"
| ^
| ;
20 | } else if (n==size(s)) {
| ~
ultimateifelse.cpp:25:22: error: expected ‘;’ before ‘}’ token
25 | cout<<"clown"
| ^
| ;
26 | }
| ~