Skip to content
Andrew Naguib edited this page Aug 30, 2018 · 3 revisions

How to obtain Sphere Engine credentials?

In Sphere Engine, there are many APIs; however, the one we need you to have credentials for is the compilers API. Steps are:

  1. Register for a new account and activate it through your e-mail.
  2. Sign in.
  3. Choose the type of your account that best describes your usage.
  4. Insert the data requested.
  5. 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.
  6. 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.

Why does sandbox refuse to make?

In local/onlinejudge/judge/sandbox/sand, run the following commands and post the output to issues.

uname -a
cc -v
make clean
make

Why pending forever?

  1. 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.
  2. If the daemon quit by itself, check your PHP log (default to syslog or Windows NT events log) for detail error messages.

Why so many internal errors from ideone.com?

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

Where is the restricted functions list?

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:

  1. Read and write an opened file. Eg. read(), write(), fread(), fwrite(), scanf(), printf(), fscanf(), fprintf(), getchar(), putchar() and etc.
  2. Allocate/Release memory. Eg. new, delete, malloc(), free(), brk() and etc.