Problem psle
User Cat
Submission Time 2025-02-13 13:46:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

psle.cpp: In function ‘int main()’:
psle.cpp:6:12: error: the value of ‘G’ is not usable in a constant expression
6 | case G < 90;
| ^~
psle.cpp:4:6: note: ‘int G’ is not const
4 | int G;
| ^
psle.cpp:6:12: error: the value of ‘G’ is not usable in a constant expression
6 | case G < 90;
| ^~
psle.cpp:4:6: note: ‘int G’ is not const
4 | int G;
| ^
psle.cpp:6:14: error: expected ‘:’ before ‘;’ token
6 | case G < 90;
| ^
| :
psle.cpp:9:12: error: the value of ‘G’ is not usable in a constant expression
9 | case G < 74;
| ^~
psle.cpp:4:6: note: ‘int G’ is not const
4 | int G;
| ^
psle.cpp:9:12: error: the value of ‘G’ is not usable in a constant expression
9 | case G < 74;
| ^~
psle.cpp:4:6: note: ‘int G’ is not const