From c45196dfe0007882404246665137e3f96b64d445 Mon Sep 17 00:00:00 2001 From: Bruno Ribas Date: Fri, 4 Nov 2016 15:14:35 -0200 Subject: problemtemplate: Added tests/cpp Signed-off-by: Bruno Ribas --- doc/problemexamples/problemtemplate/tests/cpp | 42 +++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100755 doc/problemexamples/problemtemplate/tests/cpp (limited to 'doc/problemexamples') diff --git a/doc/problemexamples/problemtemplate/tests/cpp b/doc/problemexamples/problemtemplate/tests/cpp new file mode 100755 index 0000000..d3f7273 --- /dev/null +++ b/doc/problemexamples/problemtemplate/tests/cpp @@ -0,0 +1,42 @@ +#!/bin/bash +# +# This file performs a test of the autojudge system. It can run whatever you feel important to test the autojudge +# and the script files that are included in the problem package + +mkdir -p testdir +cd testdir + +cat > test.cpp < + +using namespace std; +int main() { + char s[100]; + scanf("%s", s); + printf("%s\n",s); + return 0; +} +EOF +cat > test.in <