Please either format your code or (better!) link to your submission - the forum software has mangled it and it won’t compile!
Also: what Problem are you trying to solve?
I tried the problem TOTCRT …but it’s giving runtime error
1 Like
Thanks:
p set[10],setfinal[10];
// .. snip
scanf("%d",&N);
for(k=0;k<(3*N);k++){
scanf("%s",&set[k].code);
scanf(" %d",&set[k].no);
N can be as high as 2.10^4, so this is an out-of-bounds access.
Thanks …It worked…But my code still doesn’t work cause it exceeds the time limit Need to do it some other way
1 Like