Problem | psle |
---|---|
User | CastyLoz17 |
Submission Time | 2024-02-26 16:46:26 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
psle.cpp: In function ‘int main()’:
psle.cpp:7:14: error: expected ‘;’ before ‘if’
7 | int s;cin>>s
| ^
| ;
8 | if (s > 90) {cout<<"A*"} else (s < 91 && s > 75) {cout<<"A"} else (s > 60 && s < 75) {cout<<"B"} else (s > 50 && s < 60) {cout<<"C"} else (s > 35 && s < 50) {cout<<"D"} else (s > 20 && s < 35) {cout<<"E"} else {cout<<"U"}
| ~~
psle.cpp:8:30: error: ‘else’ without a previous ‘if’
8 | if (s > 90) {cout<<"A*"} else (s < 91 && s > 75) {cout<<"A"} else (s > 60 && s < 75) {cout<<"B"} else (s > 50 && s < 60) {cout<<"C"} else (s > 35 && s < 50) {cout<<"D"} else (s > 20 && s < 35) {cout<<"E"} else {cout<<"U"}
| ^~~~
psle.cpp:8:53: error: expected ‘;’ before ‘{’ token
8 | if (s >