I am having segmentation fault while running this code Ideone.com - yU80Bd - Online C++0x Compiler & Debugging Tool .. The problem is when I run it in GDB, the code runs fine and excellent. Why is this gdb no segfault but running every other place is segmentation fault?
here is the problem I am trying to solve Chef and Codes | CodeChef