In my program, I take value of array at Nth position and (N-1)th position and store them in a variable lets suppose x ,y respectively. But when I multiply them it works fine as online judge gives me WA after submission because I have not printed it yet.
For Eg.
int ans = x*y ;
But when I try to print ‘ans’ and submit my solution it gives me SIGSEGV, please help I am stuck on this problem from yesterday.