Posted: Wed Jun 06, 2007 1:06 pm
Hi tomtung, welcome to uva!
If the judge gives you a Compiler Error, you should check your mailbox, because he sends you an email containing the compiler output. In this case it is:
Which means that you should include the header in which memset() is declared. The judge's compiler doesn't do that automatically, as a lot of other compilers do.
I'm not sure about C++, but in C you should add "#include <string.h>".
And another thing: you should print a blank line between cases, not after each case, as you do.
If the judge gives you a Compiler Error, you should check your mailbox, because he sends you an email containing the compiler output. In this case it is:
Code: Select all
Here are the compiler error messages:
05643755_24.c: In function `int main()':
05643755_24.c:64: implicit declaration of function `int memset(...)'
I'm not sure about C++, but in C you should add "#include <string.h>".
And another thing: you should print a blank line between cases, not after each case, as you do.