hello to all!, could anybody tell me how to avoid the run time error: "segmentation fault" when I run my programs, they work perfectly under windows.
thank you.
Check carefully pointers (if you use it) or how can you index arrays ... This two reasons causes most of such errors
Best regards
DM
If you really want to get Accepted, try to think about possible, and after that - about impossible ... and you'll get, what you want ....
Born from ashes - restarting counter of problems (800+ solved problems)
the simplest solution is to use GCC compiler to check your code before submiting .. u may then use gdb to step through the code
to exactly know which statement results in segmentation fault
Simple solution: throw Windows out of the window and install Linux! I used Windows for years, now I think a true programmer can't bear with its lack of trasparence. Linux is full of instruments and utilities for a programmer.
I just use gcc/gdb/gprof from the shell...
(Sorry if I made some mistakes with the language)
Ale
Alessandro Piva, Member of the Italian Team at the International Olimpiad in Informatics 2004
Email: alex.ander@infinito.it