abhishekrathorehumain's blog

By abhishekrathorehumain, history, 4 years ago, In English

i am getting this error after submitting my sollution , does someone know how to resolve ?

Can't find file output.txt invokerId=73b0267879f276e1b42105987992c898, location=2032792125.

my sollution https://codeforces.me/problemset/submission/35/187501068

in problem https://codeforces.me/problemset/problem/35/D

| Write comment?
»
4 years ago, hide # |
 
Vote: I like it +3 Vote: I do not like it

You have to use these 2 lines of code to input and output using text files : ~~~~~ freopen("input.txt","r",stdin); freopen("output.txt","w",stdout); ~~~~~ These two lines should be at the beginning of the int main() function. Hope this helps. I am attaching the corresponding code also :

187507215

There seems to be some missing edge case. That's why it is giving wrong answer on test 28. Just fix that and you should be good to go.