Help required in generating test data

I am unable to generate the test data for iarcs problems…

It has a file called datagen.c Pls help to generate the testdata from that You can download such a file from here

1 Like

This might help you

1 Like

He didn’t ask for that

Include stdlib.h in the file datagen.c also change srandom to srand also random to rand in the file. Build the file. Run the datagen program using command line arguments i.e 1)open command prompt 2) change to the folder where your program is using cd command 3) run using
"datagen "
this will create a file containing the input the corresponding output is already given in 1.out do the same for other files

If you feel query has been answered pls mark this ans as accepted.
For any further queries comment below.

1 Like

Thanks a lot!!!

1 Like

You’re welcome.