tags:

views:

59

answers:

1

I ve written code in erlang and i am getting correct answer in my machine. But when i am submitting it in spoj.pl it is giving nzec(non zero exit code) error. I have used inbuilt functions like halt() and init:stop() and their specification clearly says that they are used to avoid non zero exit code error.But still i am geting same error. Anybody having idea? or have tried some problem in spoj using erlang ?

A: 

I got the answer.The trick is that your module name always has to be tested and the entry point should be main function.For example after compilation it should be run as tested:main().