can you please report what's the error?
Submission #732259: spoj.pl/files/src/732259/
You try to allocate way to much memory.If I count correctly, you try to allocate more than 700MB in global variables.
Thanks, noix.