Runtime Error(exit code: -1073741571) due to weird reasons in codeforces

Revision en3, by phantom654, 2020-05-31 22:00:51

For this problem, I submitted a code1 and it gave Runtime error. Here I have used long long int as the data type for all suitable variables using a 'typedef long long int ll' declaration at top

Now I just changed all the data types to 'int' by changing it to 'typedef int ll' and everything worked fine code2

In some other submission I changed the string declaration to char and again everything worked fine [code3](https://codeforces.com/contest/1363/submission/82147815)

I am not really able to understand the failure of code1. Please help me out !!!

** For this problem my friend too faced the same issue. ***

Failed code

Passed code — just changed long long int to int

Tags mysterious runtime error, long long vs int

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English phantom654 2020-05-31 22:00:51 0 (published)
en2 English phantom654 2020-05-31 21:56:58 85
en1 English phantom654 2020-05-31 21:54:53 1164 Initial revision (saved to drafts)