@@ -37,9 +37,9 @@ This code reads input from the standard input and checks that it contains the on
```c++
#include "testlib.h"
-int main()
+int main(int argc, char* argv[])
{
- registerValidation();
+ registerValidation(argc, argv);
inf.readInt(1, 100);
inf.readEoln();
inf.readEof();
@@ -7,7 +7,7 @@ Testlib is simple library which helps you to write
* generators
* interactors
for programming competitions problems.
-You can find latest release of the library on http://code.google.com/p/testlib/
+You can find latest release of the library on https://github.com/MikeMirzayanov/testlib/
Problem development management system Polygon completely supports testlib.
== How to use? ==
@@ -26,9 +26,9 @@
using namespace std;
int n = inf.readInt(1, 400, "n");
inf.readSpace();
@@ -7,9 +7,9 @@
inf.readInt(1, 100, "n");
@@ -8,9 +8,9 @@
int n = inf.readInt(1, 100000, "n");
inf.readToken("[a-z]{1,100}", "s");
int n = inf.readInt(1, 1000, "n");
@@ -47,9 +47,9 @@ bool merge(vector<int>& dsu, int a, int b)
}
int n = inf.readInt(2, 100000, "n");