Problem reinforcement
User MasterCoder8421
Submission Time 2025-12-03 09:48:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

reinforcement.cpp: In function ‘int main()’:
reinforcement.cpp:122:35: error: ‘f’ was not declared in this scope
122 | new_red = (new_red + 1) % 4;f
| ^
reinforcement.cpp:167:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
167 | while (right >= left){
| ^~~~
reinforcement.cpp:168:27: error: invalid operands of types ‘std::ios_base& (*)(std::ios_base&)’ and ‘int’ to binary ‘operator/’
168 | ll mid = (right + left) / 2;
| ~~~~~~~~~~~~~~ ^ ~
| | |
| | int
| std::ios_base& (*)(std::ios_base&)
reinforcement.cpp:170:9: error: assignment of function ‘std::ios_base& std::left(std::ios_base&)’
170 | left = mid + 1;
| ~~~~~^~~~~~~~~