Problem monsters
User asbx
Submission Time 2023-12-02 13:21:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

monsters.cpp: In function ‘int main()’:
monsters.cpp:18:55: error: expected primary-expression before ‘;’ token
18 | if(arr[i].first<=level&&arr[i].second>=level) level+=;
| ^
monsters.cpp:20:2: error: ‘else’ without a previous ‘if’
20 | else{
| ^~~~