Problem psle
User TheresaAlphonse
Submission Time 2024-06-24 14:35:19
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 ‘if’
6 | if (score >= 91) {
| ^~
psle.cpp:8:7: error: ‘else’ without a previous ‘if’
8 | } else if (score >= 75) {
| ^~~~
psle.cpp:8:16: error: ‘score’ was not declared in this scope
8 | } else if (score >= 75) {
| ^~~~~
psle.cpp:9:16: error: invalid conversion from ‘const char*’ to ‘int’ [-fpermissive]
9 | return "A";
| ^~~
| |
| const char*
psle.cpp:11:16: error: invalid conversion from ‘const char*’ to ‘int’ [-fpermissive]
11 | return "B";
| ^~~
| |
| const char*
psle.cpp:13:16: error: invalid conversion from ‘const char*’ to ‘int’ [-fpermissive]
13 | return "C";
| ^~~
|