Today, I ran into a completely unique error, while answering the problem A for 875 div. 2. My VS Code has not been working properly, so I searched for an an online C code editor, and there I wrote my code for Problem A Round 875 Div. 2. I got the desired output on the website and submitted my code in the form of .txt file. But Codeforces' compiler didn't accept my submission, as the same code was giving some other output for on the Codeforces' compiler. I didn't find any algorithm related error and the code must've worked fine. So, why did I run into an error at one place and not at the other place?
Auto comment: topic has been updated by Angaara (previous revision, new revision, compare).
From what I saw you initialize arrays before you have the value of n.
Then, how should I do that??
Initialize them after you get the value of n, or you can just make the number large instead of n depending on the value of n.
it will good to share the code.