From b300254ee1f308c440d8e8d8129fb863b6ec9599 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 30 Dec 2012 16:05:36 +0330 Subject: Making the legacy more useful Added a brief installation guide in README along with etc config file samples. Added a couple of useful start and kill scripts in utils folder. Added two sample problems (one normal one interactive) along with testers in utils folder. --- problems/hellow/tester.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 problems/hellow/tester.cpp (limited to 'problems/hellow/tester.cpp') diff --git a/problems/hellow/tester.cpp b/problems/hellow/tester.cpp new file mode 100644 index 0000000..f20ffdc --- /dev/null +++ b/problems/hellow/tester.cpp @@ -0,0 +1,23 @@ +#include +#include +#include +#include + +using namespace std; + +int main(int argc, char* argv[]) +{ + ifstream fin (argv[1]); + int z, y; + fin >> z; + cin >> y; + if(z == y) + { +// cerr << "Correct!" << endl; + cerr << 100 << endl; + return 0; + } +// cerr << "Wrong!" << endl; + cerr << 0 << endl; + return 0; +} -- cgit