Comments (12)
Could you try gcc -D_MOODLE_ONLINE_JUDGE_ -Wall -static -o hello hello.c -lm
and send the file hello along with judge/sandbox/sand/policy.c to [email protected] ? Thank u
from moodle-local_onlinejudge.
Are you using 64bit Linux? If yes, try the latest code please.
from moodle-local_onlinejudge.
Yes, I am using Linux 64bit. Sorry for completely forgetting to give arch related information.
That made it, cheers! But there's an another thing now: When the file is compiled and evaluated, in the place "Details: Case 1: Accepted (info-button)", it gives the following error when pressing info-button:
Coding error detected, it must be fixed by a programmer: The course you passed to $PAGE->set_cm does not correspond to the $cm.
from moodle-local_onlinejudge.
For "restricted functions", case solved, thus -> close issue. Thanks!
from moodle-local_onlinejudge.
You are not the first one who reports the $cm problem. But I can not reproduce it on my site.
Could you increase the debug level of your site and retry. Moodle should output more details about this problem. Paste the details and the url of info-button here, please.
Thank you.
from moodle-local_onlinejudge.
Finally I had time to debug it. It seems to have something related to our custom theme. I am still finding the way to repair it but I suppose it's mainly because of our theme. Thanks anyway.
from moodle-local_onlinejudge.
Confirmed it's a bug in our theme, case closed.
from moodle-local_onlinejudge.
Could you provide more details? Since it is the only page meets this problem, probably I can do something to improve its compatibility. Thanks.
from moodle-local_onlinejudge.
Yes, sure. This was the fix we needed in our theme https://github.com/MoodleCodeCheck/ohop/commit/c11020e46b9bd011c6bd22d64d08c0c9e02586df
And here is the full stack trace:
line 3361 of /lib/navigationlib.php: call to moodle_page->set_cm()
line 2838 of /lib/navigationlib.php: call to settings_navigation->load_module_settings()
line 601 of /lib/pagelib.php: call to settings_navigation->initialise()
line 617 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
line 2607 of /lib/navigationlib.php: call to moodle_page->__get()
line 2638 of /lib/navigationlib.php: call to navbar->has_items()
line 2300 of /lib/outputrenderers.php: call to navbar->get_items()
line 93 of /theme/ohop/layout/general.php: call to core_renderer->navbar()
line 654 of /lib/outputrenderers.php: call to include()
line 612 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line ? of unknownfile: call to core_renderer->header()
line 1291 of /lib/setuplib.php: call to call_user_func_array()
line ? of unknownfile: call to bootstrap_renderer->__call()
line 58 of /local/onlinejudge/details.php: call to bootstrap_renderer->header()
And ohop-theme can be obtained from here: https://github.com/MoodleCodeCheck/ohop
from moodle-local_onlinejudge.
thank you once again :) btw. we are working on a finnish version of the online judge so be aware that you will receive a pull request anytime soon :)
from moodle-local_onlinejudge.
Hi weezel!
Nothing. Just say hello and I really appreciate your finnish version. ;-)
from moodle-local_onlinejudge.
Hello Sunner!
The joy is on my side :) Sorry for the delay but the translation should have been already done a week ago. Unfortunately I am not responsible for it so I cannot either have affect on that.
And thousand thanks for the snappy responses and even snappier fixes :)
from moodle-local_onlinejudge.
Related Issues (20)
- 提交的代码判断报错受限函数
- 判断提交的代码时提示函数受限 HOT 7
- libsandbox compilation error,The plug-in cannot run properly
- Consider adding github actions support - it's free and very useful.
- install.xml not valid.
- Missing Privacy API
- missing thirdpartylibs.xml file.
- Moodle uses sentence case.
- Incorrect location for class and violation of frankenstyle naming rules.
- assign_feedback plugin should be submitted separately to plugins db
- $onlinejudge is no-object in mod/assign/feedback/onlinejudge/locallib.php HOT 3
- 安装问题 HOT 13
- Error when compling C files through sandbox HOT 7
- 安装问题 HOT 2
- Sandbox Compilation Error
- [!] frontend: assignfeedback plugin settings is glitched (cpu and memory range loading) HOT 1
- [!] deprecated usage of implode
- review issues HOT 1
- Core Dumped During Sandbox Compilation[!] HOT 2
- A Question About Its Usage HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moodle-local_onlinejudge.