Hello,
i have a sort program, it has files .txt with datas, i upload the .cpp and .txt and later execute with domjudge but i get problems with .txt. how can i use programs with files .txt.
regards.
On 02-06-16 12:29, Jesús Alberto Domínguez Alfonso wrote:
Hello,
i have a sort program, it has files .txt with datas, i upload the .cpp and .txt and later execute with domjudge but i get problems with .txt. how can i use programs with files .txt.
What exactly is the problem you see? - Jaap
Hi Jesús, all,
On 02-06-16 13:46, Jaap Eldering wrote:
On 02-06-16 12:29, Jesús Alberto Domínguez Alfonso wrote:
Hello,
i have a sort program, it has files .txt with datas, i upload the .cpp and .txt and later execute with domjudge but i get problems with .txt. how can i use programs with files .txt.
What exactly is the problem you see? - Jaap
We had a look at this, and indeed for most languages, you will get an error message if you try to include non-source-code files in your submission.
We think that this is actually the correct behaviour. The reason is that otherwise a team could also include pre-compiled (static) binaries and execute these from their code. In this way they could circumvent language restrictions. Thus, we feel that by default the compiler scripts should enforce that all files included in a submission are part of the source code. Most compile scripts currently do so, but a few don't, since especially for interpreted languages it is difficult to check/enforce that all files are source code. Comments/discussion welcome!
The upshot is that if you explicitly want to allow extra text files, then you should modify the compile scripts and make sure that these files are not passed to the compiler or interpreter, so that no syntax error is generated.
Best, Jaap