Problem psle
User Sia
Submission Time 2023-11-08 14:18:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

psle.cpp: In function ‘int main()’:
psle.cpp:6:5: error: expected initializer before ‘string’
6 | string grade
| ^~~~~~
psle.cpp:11:2: error: ‘else’ without a previous ‘if’
11 | else if (score >= 75) {
| ^~~~
psle.cpp:11:11: error: ‘score’ was not declared in this scope
11 | else if (score >= 75) {
| ^~~~~
psle.cpp:12:6: error: ‘grade’ was not declared in this scope
12 | grade = "A";
| ^~~~~
psle.cpp:15:6: error: ‘grade’ was not declared in this scope
15 | grade = "B";
| ^~~~~
psle.cpp:18:5: error: ‘grade’ was not declared in this scope
18 | grade = "C";
| ^~~~~
psle.cpp:21:5: error: ‘grade’ was not declared in this scope
21 | grade = "D";
| ^~~~~
psle.cpp:24:5: error: ‘grade’ was not declared in this scope
24 | grade = "E";
| ^~~~~
psle.cpp:27:5: error: ‘grade’ was not