Hello, guys,
Would you please help me with this problem? I am trying to solve the problem “Forgotten Language” for beginners:
Here is my code (I posted this version commented to help you understand the issue):
https://www.codechef.com/viewsolution/40680420
I tested the sample input and the output is ok. But when I submit I get a Runtime Error message (SIGSEGV). I tried to implement data validation to see if that would solve the problem, but it did not help.
I searched online and found that this happens when you exceed a array position limit, but I don’t think I am doing that with my code.
Please help.