i got SIGSEGV in C++(gcc 4.3.2) but GOT AC in C++(gcc 4.8.1) for the problem PRIME GENERATOR http://www.codechef.com/problems/PRIME1
These are my solutions : C++(gcc 4.8.1)
http://www.codechef.com/viewsolution/3083129
C++(gcc 4.3.2)
http://www.codechef.com/viewsolution/3372545
Can anyone tell me why this happened?