Can anyone explain me why i am getting run time error , i noticed that it failed to pass
when input is all author-translator, test case 1 , and in some sub task of test case 2.
There is possibility that the vectors you created may be empty.
Therefore it is illegal to access there ‘0’ position, i.e. , tr+au>aut.
In other words it is not necessary that all of the three vectors contain elements some of them may be empty.
Then is there any way to counter this error, i mean in this solution ?
If au or tr is empty then aut is ans.
if aut is empty then au+tr is ans.
else the condition already present in code.
PS- Make a habit of debugging code yourself.
I tried myself to debug it, but i was unable to do it , so i come here , by the way thanks for the help. <3