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

Compile Error

monsters.cpp: In function ‘int main()’:
monsters.cpp:16:6: error: conflicting declaration ‘bool b’
16 | bool b=true;
| ^
monsters.cpp:7:7: note: previous declaration as ‘int b’
7 | int a,b,c,level=0;
| ^
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{
| ^~~~