mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-22 04:56:30 +02:00
Compare commits
4 commits
7a8309553b
...
6615ec4519
Author | SHA1 | Date | |
---|---|---|---|
|
6615ec4519 | ||
|
178ddf19d6 | ||
|
e169d0cab8 | ||
|
ab8ede1c5d |
3 changed files with 6 additions and 7 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
api/api
|
||||
api/package-lock.json
|
||||
lxc/i
|
||||
lxc/lockfile
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
cd /tmp/$2
|
||||
gcc -std=c11 -o binary -x c code.code
|
||||
timeout -s KILL 3 xargs -a args.args ./binary < stdin.stdin
|
||||
timeout -s KILL 10 gcc -std=c11 -o binary -x c code.code
|
||||
timeout -s KILL 3 xargs -a args.args -d '\n' ./binary < stdin.stdin
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd /tmp/$2
|
||||
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
|
||||
cp code.code interim.java
|
||||
timeout -s KILL 10 xargs -a args.args -d '\n' java interim.java < stdin.stdin
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue