Skip to content

Commit cc9be25

Browse files
compile
1 parent f06493a commit cc9be25

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

runtime-exec/Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM ubuntu:21.04
2+
3+
RUN apt-get update
4+
RUN apt-get -y upgrade
5+
RUN apt-get -y install golang ca-certificates build-essential
6+
7+
RUN update-ca-certificates
8+
9+
WORKDIR /code-grader
10+
COPY . .
11+
12+
WORKDIR /code-grader/runtime-exec
13+
RUN go build
14+
ENTRYPOINT [ "./runtime-exec" ]

testcases/example-1/answer.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
int main() {
2-
string word;
3-
cin << word;
4-
if (word == "Hello)
5-
{
6-
cout << "World" << endl;
7-
}
2+
cout << "World" << endl;
83
return 0;
94
}

testcases/example-1/input.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// Input Data
2-
// Line Starts with `//` will be ignored
2+
// Line starting with `//` and empty lines will be ignored
33

44
Hello

0 commit comments

Comments
 (0)