TurboC is not a standards compliant c compiler. At SPOJ we use gcc.
When you use an include statement the only headers that you cam include on SPOJ are the standard one's. alloc.h is a non-standard header. If you're trying to use malloc, it's included in stdlib.h.
Typically around here it's better to avoid pointers and they're allocation. Use static arrays instead that are large enough for all test cases. That way you avoid the time of allocating and deallocsting many times.