Cmp subcommand
quicktest cmp | qt cmp
Verifies the correctness of an algorithm by comparing it against a brute-force solution. The brute-force solution, while typically slower, is guaranteed to be correct.
quicktest cmp --target-file=main.cpp --correct-file=correct.cpp --gen-file=gen.cpp
Or using the shorter alias:
qt cmp -t main.cpp --c correct.cpp -g gen.cpp
Demo

Subcommand Structure
-
quicktest cmp | qt cmpRequired Options
-t=<value> | --target-file=<value>-c=<value> | --correct-file=<value>-g=<value> | --gen-file=<value>
Other Options
--test-cases=<value> | --tc=<value> [default: 1000]--timeout=<value> | --tout=<value> [default: 2000]Unit of time:ms--memory-limit=<value> | --ml=<value> [default: 1000000000 - 1GB]Unit of time:bytes--prefix=<value> | -p=<value>Conflicts with--gen-file(Only one can be used at a time).--diffShows differences between the expected file and the output file
-
Flags of the
cmp,stressandchecksubcommands--break-bad | --breakStops execution if WA, TLE, or RTE states occur.--run-acRuns Accepted test cases.--run-allRuns all test cases.--run-rteRuns Run Time Error test cases.--run-tleRuns Time Limit Exceeded test cases.--run-waRuns Wrong Answer test cases.--save-allSaves all test cases.--save-badSaves only bad cases (WA, TLE, or RTE).