Skip to content

Commit

Permalink
Merge branch 'master' of github.com:mdcpp/mdoj
Browse files Browse the repository at this point in the history
  • Loading branch information
KAIYOHUGO committed Dec 18, 2023
2 parents 628566c + 058ee34 commit 25dfcf7
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions judger/plugins/gcc-13/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM gcc:13
WORKDIR /
COPY compile.c .
COPY execute.sh /
RUN gcc compile.c -o compile
RUN rm compile.c
3 changes: 0 additions & 3 deletions judger/plugins/gcc-13/compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
#include <spawn.h>
#include <errno.h>
#include <sys/wait.h>
// #define CC "/usr/lib64/ccache/g++"
// #define SRC "src.cpp"
// #define OUT "src.out"
#define CC "/usr/local/bin/g++"
#define SRC "/src/src.cpp"
#define OUT "/src/src.out"
Expand Down
2 changes: 2 additions & 0 deletions judger/plugins/gcc-13/execute.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
/src/src.out
2 changes: 1 addition & 1 deletion judger/plugins/gcc-13/spec.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ cpu_time = 10000000
total_time = 10000000

[judge]
command = ["/src/src.out"]
command = ["/execute.sh"]
kernel_mem = 67108864
multiplier_memory = 1 # user_mem
rt_time = 1000000
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ If you prefer to use default config, you can skip step 2 and 3.

1. install following package:

- From system package manager: `protobuf-devel`, `autoconf` ,`gettext`, `libtool`, `gcc`, `libcap-devel`, `systemd-devel`, `yajl-devel`, `libgcrypt-devel` ,`glibc-static`, `libseccomp-devel`, `python36`, `git`
- From system package manager: `protobuf-devel`, `gcc`
- From rustup: `rustup`, `cargo`, `just`
- From their website: `docker`, `docker-compose`

Then start reading documents in subfolder of your interest.

> you may need to run ``just prepare`` again in each subfolder, follow the doucment in each subfolder.
> you may need to run ``just prepare`` in ``judger``, ``backend`` subfolder.

0 comments on commit 25dfcf7

Please sign in to comment.