Comments (13)
Please provide full details about the procedure of:
- your installation of onlinejudge
- how you add the onlinejudge assignment
Thx.
from moodle-local_onlinejudge.
- installing on Linux:
- Decompress hit-moodle-moodle-local_onlinejudge-2ca62a3, rename it
- Put onlinejudge into /var/www/html/moodle/local/
- run /var/www/html/moodle/local/onlinejudge/cli/install_assignment_type. No error.
- Login my site as admin and access /admin/index.php. The installation success.
- run sudo -u apache /usr/bin/php /var/www/html/moodle/local/onlinejudge/cli/judged.php. show "Judge daemon successfully created. PID = 17966"
- Login my site as teacher and access My courses--Turn editing on--Weekly outline--Add an activity--Online Judge
On Online Judge setting page:
1) Programming language: C (gcc-4.3.4, ideone.com)
2) filling Ideone API by my account and my password
3) Other parts is default
from moodle-local_onlinejudge.
I followed your steps but the problem is not reproduced. Instead, I met another problem since the testcases are not defined. I fixed the problem in the latest code. Can you test it to see whether it fixes your problem also? Thx.
from moodle-local_onlinejudge.
I download the latest code, Updated the onlinejudge. test it agin, but the problem still occurs. I finded a other thing.: The Student submit online draft, but the teacher judge display "还没有提交文件". I think it may be the cause of the problem.
from moodle-local_onlinejudge.
By the way, how can i upload a picture? thanks!
from moodle-local_onlinejudge.
Can you post the records in table mdl_assignment_oj_submissions here? Or, can you give me access to your site and database to debug? This is really odd problem and I can't reproduce it.
BTW: github comment does not support uploading pictures. You can upload them to picasa/flicker/others then link them here.
from moodle-local_onlinejudge.
I just installed CentOS and moodle in my notebook. So do not remote access my stie. I export the recouds in the table mdl_assignment_oj_submissions, as follows:
-- 转存表中的数据 mdl_assignment_oj_submissions
INSERT INTO mdl_assignment_oj_submissions
(id
, submission
, testcase
, task
, latest
) VALUES
(1, 2, 1, 1, 0),
(2, 1, 1, 2, 1),
(3, 2, 1, 3, 1),
(4, 3, 2, 4, 1);
from moodle-local_onlinejudge.
Can you post all tables named mdl_assignment_oj* ?
from moodle-local_onlinejudge.
-- 转存表中的数据 mdl_assignment_oj_testcases
INSERT INTO mdl_assignment_oj_testcases
(id
, assignment
, input
, output
, usefile
, feedback
, subgrade
, sortorder
) VALUES
(1, 1, '', 'Let''s begin to learn C programming!', 0, '', '1.0000000000', 0),
(2, 2, '10 20', 'Let''s begin to learn C programming!', 0, '继续努力......', '0.7500000000', 0);
from moodle-local_onlinejudge.
-- 转存表中的数据 mdl_assignment_oj
INSERT INTO mdl_assignment_oj
(id
, assignment
, language
, memlimit
, cpulimit
, compileonly
, ratiope
, ideoneuser
, ideonepass
) VALUES
(1, 1, '11_ideone', 8388608, 10, 0, '0.3000000000', 'alphakm', 'ynn@5038003&'),
(2, 2, '11_ideone', 1048576, 10, 0, '0.5000000000', 'alphakm', 'ynn@5038003&');
from moodle-local_onlinejudge.
I add some restrictness in latest code which should not solve this problem but should be helpful for debuging. Try it and don't forget install_assignment_type
from moodle-local_onlinejudge.
The Student submit online draft, Submission auto judge without teacher's requesting.
2006002-2.c
Status: Accepted
Judge time: Wednesday, 10 August 2011, 10:11 PM (2 mins 6 secs early)
Details: Case 1: Accepted
from moodle-local_onlinejudge.
Oh. So the problem has gone? Ok. Close this issue
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.