mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-09 03:26:27 +02:00
Compare commits
No commits in common. "6615ec4519a1ab2c59a48f2e0c0adaf588e58671" and "7a8309553b8734911487027fae3c2251a7556332" have entirely different histories.
6615ec4519
...
7a8309553b
3 changed files with 7 additions and 6 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,4 +1,3 @@
|
||||||
api/api
|
api/api
|
||||||
api/package-lock.json
|
|
||||||
lxc/i
|
lxc/i
|
||||||
lxc/lockfile
|
lxc/lockfile
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/bash
|
#!/usr/bin/bash
|
||||||
|
|
||||||
cd /tmp/$2
|
cd /tmp/$2
|
||||||
timeout -s KILL 10 gcc -std=c11 -o binary -x c code.code
|
gcc -std=c11 -o binary -x c code.code
|
||||||
timeout -s KILL 3 xargs -a args.args -d '\n' ./binary < stdin.stdin
|
timeout -s KILL 3 xargs -a args.args ./binary < stdin.stdin
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
cp code.code interim.java
|
cd /tmp/$2
|
||||||
timeout -s KILL 10 xargs -a args.args -d '\n' java interim.java < stdin.stdin
|
name=$(grep -Po "(?<=\n|\A)\s*(public\s+)?(class|interface)\s+\K([^\/\\\\\n\s{]+)" code.code)
|
||||||
|
cp code.code $name.java
|
||||||
|
javac $name.java
|
||||||
|
timeout -s KILL 3 xargs -a args.args -d '\n' java $name < stdin.stdin
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue