When giving a review, we do not increment reviewCount[_student], so this check will always pass, even if we give 5 or more reviews.
In LevelOne::giveReview, we check if the input student has less than 5 reviewCount[_student]. However, the mapping is never updated in the code, which means this check will always pass even if it's the 5th review.
The check is useless, and we can give more reviews than intended. Not sure if teachers can be considered malicious, or it can be considered a mistake by the teacher. Moreover, since this mapping is broken, we can't really check if all the students have received 4 reviews, which is essential for the upgrade and graduation. But this is also dependent on principal to update without verifying all the students received their review.
Hence, leaving it as Low-severity.
Manual Review
At the end of LevelOne::giveReview, add a line reviewCount[_student]++
`reviewCount` for students is not updated after each review session
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.