+ 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
1 Resposta
+ 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