-
-
Notifications
You must be signed in to change notification settings - Fork 59
Andrew Naguib edited this page Aug 30, 2018
·
3 revisions
In Sphere Engine, there are many APIs; however, the one we need you to have credentials for is the compilers API. Steps are:
- Register for a new account and activate it through your e-mail.
- Sign in.
- Choose the type of your account that best describes your usage.
- Insert the data requested.
- After you successfully get to the home page, you will see that the compilers API is disabled because you are on the free plan. You will need to upgrade it, for which you will need to contact the support.
- After you successfully upgrade your plan, on the left sidebar, click "API Tokens". You will see your endpoint (client id) as an URL, for instance, "1234abcd.compilers.sphere-engine.com", please note that you only need to insert the bolded part into the plugin. And the token which is the API key.
In local/onlinejudge/judge/sandbox/sand, run the following commands and post the output to issues.
uname -a
cc -v
make clean
make
- Check whether the judge daemon (judged) is running. The process's name should be php or php.exe. If not, follow README to launch it.
- If the daemon quit by itself, check your PHP log (default to syslog or Windows NT events log) for detail error messages.
Ideone.com will reject the later access if the delay between accesses is too short. You can increase the delay value at settings->site administration->plugins->local plugins->onlinejudge
To protect the online judge server, functions/system calls those may be harmful are not allowed to be used in submissions. Only the following functions are allowed:
- Read and write an opened file. Eg.
read(), write(), fread(), fwrite(), scanf(), printf(), fscanf(), fprintf(), getchar(), putchar()
and etc. - Allocate/Release memory. Eg.
new, delete, malloc(), free(), brk()
and etc.