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

Правка en1, от phantom654, 2020-05-31 21:54:53

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

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

Теги mysterious runtime error, long long vs int

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский phantom654 2020-05-31 22:00:51 0 (published)
en2 Английский phantom654 2020-05-31 21:56:58 85
en1 Английский phantom654 2020-05-31 21:54:53 1164 Initial revision (saved to drafts)