1 / 5
Jul 2005

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

  • created

    Jul '05
  • last reply

    Jul '05
  • 4

    replies

  • 244

    views

  • 3

    users

  • 2

    links

I have no idea what could have caused the NZEC, since you said you had a return 0; or exit(0); in your program.
But for the compile error: if you login to spoj, you can click on the message "compile error" of your submission and you will see the error messages of the compiler, which should help to locate the reason.

Thanks a lot! I wasn't aware of that at all!

Hmm, that introduces an even odder problem. All 3 compilation errors are:

I am pretty sure my "main" function was there and spelled correctly. Infact, I haven't even touched it's line "int main(void)" in all 6 submissions...

It seems you've send empty sources accidentally.

Just compare (being logged in as yourself):
spoj.sphere.pl/files/src/222283/1
spoj.sphere.pl/files/error/2222831
(similarly for 222284, 222285)

If there's a bug on our side, it's in the handling of the submission form - is there?

I am embarrassed to say (especially after Adrian told me about the "compilation error" link) I didn't know about that option either...

Most likely to be my faulty connection (over the past few days) rather than a bug on your side (especially since I've submitted all of of the sources to PALIN in the same way - openning "/home/manches/palin.c").

Sorry for the trouble. I should pay more attention to details...

Suggested Topics

Topic Category Replies Views Activity
C and C++ 0 14 7d

Want to read more? Browse other topics in C and C++ or view latest topics.