Closed ashikoff closed 9 years ago
Did you manage to find the problem? Otherwise I can take a look into this, but I'd like to have some input/output example too :)
We've managed to isolate the problem. The problem is not with the communication task type - we configured simple task and everything was fine. Seems the issue arises when we try to write a function in the stup.cpp which the competitor should call in his function. Then the grader just stops at the call to that function and nothing happens (the sandbox cuts the process when the time limit has passed). So the correct question here is - is it possible (and if it is how) to supply an author function in the stub which can be called by the contestant function. I'll open another issue with that one because it is different than the statement in the title here :)
Sorry for the long time, I answered to this in #361
Hello there. I've started to dig in CMS recently (want to implement it in all inside Bulgarian informatics contests). One of main reasons to do it is the support of communication task types. I'm trying to configure a task which uses communication between contestant's solution and judge's manager program. The task is - bookshelf from Russian Olympiad in Informatics 2014. I've created a manager (which reads the input and sends the input to the fifo) also created a stub.cpp which gets the input from the manager and implements special function ask(x,y) used by the contestant to send requests to the manager during solving. Here is the manager source:
The idea is simple - the manager sends the required number to the fifo and then awaits requests. When answer is received it checks if it is the correct one and gives results (0 or 1) to the standard output.
The stub is even simpler:
It receives the input from the manager, calls users function and then prints the answer to the manager. It also provides function Ask to contestant in order to make possible communication between contestant's program and judge's manager program.
The submissions compiles fine within the stub and then evaluates without errors. However there are no point awarded and when I click "details"for the evaluation all test cases got result "N/A". I see how the worker is grading each one of the 5 testcases I've configured...
Help please with resolving this situation. Anyone experienced with communication task type feel free to mail me - anton@opcosys.com or contact me on skype - a_shikoff. Thank you in advance!