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.