Problem ippt
User asbx
Submission Time 2023-12-02 13:04:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ippt.cpp: In function ‘int main()’:
ippt.cpp:10:1: error: expected ‘}’ before ‘else’
10 | else if(a+b+c<=60){
| ^~~~
ippt.cpp:8:21: note: to match this ‘{’
8 | if(a==0||b==0||c==0){
| ^
ippt.cpp:13:19: error: ‘P’ was not declared in this scope
13 | else if(a+b+c<=74)P
| ^
ippt.cpp: At global scope:
ippt.cpp:16:1: error: expected unqualified-id before ‘else’
16 | else if(a+b+c<=84){
| ^~~~
ippt.cpp:19:1: error: expected unqualified-id before ‘else’
19 | else cout<<"GOLD";
| ^~~~
ippt.cpp:20:1: error: expected declaration before ‘}’ token
20 | }
| ^