Problem ippt
User joevincent1987
Submission Time 2023-12-02 20:40:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ippt.cpp: In function ‘void end(int)’:
ippt.cpp:9:13: error: ‘s’ is not a constant expression
9 | case s <= 60:
| ^~
ippt.cpp:12:13: error: ‘s’ is not a constant expression
12 | case s <= 74:
| ^~
ippt.cpp:15:13: error: ‘s’ is not a constant expression
15 | case s <= 84:
| ^~
ippt.cpp:23:11: error: a function-definition is not allowed here before ‘{’ token
23 | int main(){
| ^
ippt.cpp:35:1: error: expected ‘}’ at end of input
35 | }
| ^
ippt.cpp:7:16: note: to match this ‘{’
7 | void end(int s){
| ^