editorial gives error
@Tanish hey tanish this editorial is in java language and you’re running in c++. I have made the changes you can go through this.