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

Compile Error

psle.cpp: In function ‘int main()’:
psle.cpp:6:3: error: expected initializer before ‘int’
6 | int grade
| ^~~
psle.cpp:10:7: error: ‘score’ was not declared in this scope
10 | if (score >== 60) {
| ^~~~~
psle.cpp:10:15: error: expected primary-expression before ‘=’ token
10 | if (score >== 60) {
| ^
psle.cpp:11:6: error: ‘grade’ was not declared in this scope
11 | grade = 'B';
| ^~~~~
psle.cpp:13:7: error: ‘score’ was not declared in this scope
13 | if (score >== 55) {
| ^~~~~
psle.cpp:13:15: error: expected primary-expression before ‘=’ token
13 | if (score >== 55) {
| ^
psle.cpp:14:6: error: ‘grade’ was not declared in this scope
14 | grade = 'C';
| ^~~~~
psle.cpp:16:7: error: ‘score’ was not declared in this scope
16 | if (score >== 50) {
| ^~~~~