+ 1

Code working locally but not on hackerrank

The following code works perfectly locally and on SL but on hackerrank it just shows no output i.e the gradingStudents function returns nothing ig. Grating student problem on hackerrank : https://www.hackerrank.com/challenges/grading/problem?isFullScreen=true SL code: https://www.sololearn.com/en/compiler-playground/cXvlpHOoRWe9

23rd Dec 2024, 3:34 PM
Shreyansh
Shreyansh - avatar
1 Réponse
+ 5
Your sololearn code does not follow the rules required for the returns. A vector<int> is expected but your sololearn code returns a pointer int* to a possibly deleted address
23rd Dec 2024, 4:53 PM
RuntimeTerror
RuntimeTerror - avatar