Hello all
My solution, was to store the number of responses(among A,B,C,D,E) for each question and choose the maximum among them and multiply with the marks awarded. I am getting a Runtime error. I am not able to figure out why.
The part of code where it's failing is:
s is string, j is the question number
temp = (int)(s[j]-'A');
v[j][temp]++;
I have encountered this problem quite a few times, but have avoided every time somehow. Please do let me know what is wrong with this.
My solution: 70953260
I am extremely sorry if I am asking something that is fairly obvious. Thank you for your time.