Problem psle
User rhea61
Submission Time 2023-11-08 12:57:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

psle.cpp: In function ‘int main()’:
psle.cpp:6:1: error: expected initializer before ‘if’
6 | if (score >= 91) {
| ^~
psle.cpp:9:2: error: ‘else’ without a previous ‘if’
9 | else if (score >= 75) {
| ^~~~
psle.cpp:10:6: error: ‘grade’ was not declared in this scope
10 | grade = 'A';
| ^~~~~
psle.cpp:13:6: error: ‘grade’ was not declared in this scope
13 | grade = 'B';
| ^~~~~
psle.cpp:16:5: error: ‘grade’ was not declared in this scope
16 | grade = 'C';
| ^~~~~
psle.cpp:19:5: error: ‘grade’ was not declared in this scope
19 | grade = 'D';
| ^~~~~
psle.cpp:22:5: error: ‘grade’ was not declared in this scope
22 | grade = 'E';
| ^~~~~
psle.cpp:25:2: error: ‘grade’ was not declared in this scope
25 | grade = 'U';
| ^~~~~
psle.cpp:28:10: error: expected ‘;’ before ‘}’ token
28 | retur