Скоро Codeforces Round 1133 (Div. 1, Div. 2)! Регистрация здесь. ×
Problem in set::erase(), Codeforces judge showing different output than gcc on terminal
Разница между en1 и en2, 100 символ(ов) изменены
[Edit: Issue resolved, the issue was regarding the bytes taken by size_t on different platforms]↵
↵
Going through some blogs regarding the cause of the difference in output between judge and local terminal, I saw majorly the Out of Bound error. But I have looked across my code multiple times, not able to find the generation of such an exception.↵
↵
Problem: [problem:1335E1]. My submission: [submission:79635901]↵
↵
For test case 1, the output is different,↵
↵
Participant's output:↵
6↵
2↵
3↵
0↵
0↵
2↵
↵
↵
Output on the local machine:↵
7↵
2↵
4↵
1↵
1↵
3↵
↵
I suspect the error may lie somewhere in the implementation of sets. Please help me through if anyone catches the issue. Cheers.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский shpvb 2020-05-10 14:36:42 100
en1 Английский shpvb 2020-05-10 12:59:01 673 Initial revision (published)