Skip to content

Commit

Permalink
Validators use argc, argv.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMirzayanov committed Dec 29, 2016
1 parent 352ce62 commit af0a6d3
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion docs/read.me
Expand Up @@ -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? ==
Expand Down
4 changes: 2 additions & 2 deletions validators/bipartite-graph-validator.cpp
Expand Up @@ -26,9 +26,9 @@

using namespace std;

int main()
int main(int argc, char* argv[])
{
registerValidation();
registerValidation(argc, argv);

int n = inf.readInt(1, 400, "n");
inf.readSpace();
Expand Down
4 changes: 2 additions & 2 deletions validators/ival.cpp
Expand Up @@ -7,9 +7,9 @@

using namespace std;

int main()
int main(int argc, char* argv[])
{
registerValidation();
registerValidation(argc, argv);

inf.readInt(1, 100, "n");
inf.readEoln();
Expand Down
4 changes: 2 additions & 2 deletions validators/nval.cpp
Expand Up @@ -8,9 +8,9 @@

using namespace std;

int main()
int main(int argc, char* argv[])
{
registerValidation();
registerValidation(argc, argv);

int n = inf.readInt(1, 100000, "n");
inf.readEoln();
Expand Down
4 changes: 2 additions & 2 deletions validators/sval.cpp
Expand Up @@ -8,9 +8,9 @@

using namespace std;

int main()
int main(int argc, char* argv[])
{
registerValidation();
registerValidation(argc, argv);

inf.readToken("[a-z]{1,100}", "s");
inf.readEoln();
Expand Down
4 changes: 2 additions & 2 deletions validators/undirected-graph-validator.cpp
Expand Up @@ -26,9 +26,9 @@

using namespace std;

int main()
int main(int argc, char* argv[])
{
registerValidation();
registerValidation(argc, argv);

int n = inf.readInt(1, 1000, "n");
inf.readSpace();
Expand Down
4 changes: 2 additions & 2 deletions validators/undirected-tree-validator.cpp
Expand Up @@ -47,9 +47,9 @@ bool merge(vector<int>& dsu, int a, int b)
}
}

int main()
int main(int argc, char* argv[])
{
registerValidation();
registerValidation(argc, argv);

int n = inf.readInt(2, 100000, "n");
inf.readEoln();
Expand Down

0 comments on commit af0a6d3

Please sign in to comment.