Problem psle
User WuYanni
Submission Time 2024-06-24 14:45:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

psle.cpp: In function ‘int main()’:
psle.cpp:8:4: error: ‘else’ without a previous ‘if’
8 | } else if (74<a<91)
| ^~~~
psle.cpp:10:3: error: ‘else’ without a previous ‘if’
10 | } else if (59<a<75)
| ^~~~
psle.cpp:12:3: error: ‘else’ without a previous ‘if’
12 | } else if(49<a<61)
| ^~~~
psle.cpp:14:3: error: ‘else’ without a previous ‘if’
14 | } else if(34<a<50)
| ^~~~
psle.cpp:16:3: error: ‘else’ without a previous ‘if’
16 | } else if(20<a<51)
| ^~~~
psle.cpp:18:3: error: ‘else’ without a previous ‘if’
18 | } else(a<20)
| ^~~~
psle.cpp:18:13: error: expected ‘;’ before ‘cout’
18 | } else(a<20)
| ^
| ;
19 | cout<<"U"; {
| ~~~~
psle.cpp:21:1: error: expected ‘}’ at end of input
21 | }
| ^
psle.cpp:3:12: note: to match this ‘{’