I've submitted a solution to PALIN 6 times today - 3 compilation errors, and 3 NZECs.
Solution seems to work perfectly here, and i am lost. Compiled both with GCC 3.4.3 and 4.0.0 (upgraded for/because of this problem) no errors or warnings at all when using "-Wall -Wextra" and optionally "-ansi -pedantic" or "-std=c99 -pedantic".
Removed any C99 dependency (only had one - stdbool.h which IIRC worked in other solutions I submitted) and replaced a:
char b[1000005];
with a call to malloc() (although the same operating system, compiler, and processor architecture should have similar conditions - so if it worked on my machine, it should've worked here aswell, and the 64K array size nasal-demon condition shouldn't arrise). tried to place:
exit(0);
instead of and combined with a:
return 0;
I have no idea what caused those compilation errors or the NZECs.
As far as I can tell the code works and solved the problem, so posting it would be a spoiler (unless the personnel approve)
Any help would be greatly appreciated.
manches