summaryrefslogtreecommitdiffstats
path: root/problems/hellow/tester.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'problems/hellow/tester.cpp')
-rw-r--r--problems/hellow/tester.cpp23
1 files changed, 23 insertions, 0 deletions
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 <iostream>
+#include <fstream>
+#include <string>
+#include <cstdlib>
+
+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;
+}