Generated from cpl 0.2.2 (dev, a0d0078e)
Tools
One binary, cpl, does everything from checking a file to finding the smallest input where your solution and a brute disagree. Each page below is generated from cpl <command> --help.
Judge profiles · 8 judges, the compiler and limits each build targets.
Write and run
cpl check <file>...report every error in the filescpl fix <file>...apply the fix each error suggests, then report what is leftcpl run <file> [input]check, then run in the debug interpreter, reading the input file or standard input; a file with an @interactor runs against it, on the hidden test (cpl run --help has the options for traces); --release runs the C++ that cpl build writescpl fmt [path]...format files in the one canonical stylecpl lint [path]...warn about code that is legal but probably wrong or slowcpl explain <CODE|file|--json>show a diagnostic/lint explanation or a file's representations & view costsSubmit
cpl build <file> [-o out]check, then write one C++17 file to submit: next to the source by default, to standard output with -o -; --checked also builds it with sanitizers to run here; --judge <name> writes it for that judgecpl submit <file>build for the file's judge, run its cases on that build, and say whether it is ready to sendcpl judges [file]list the judge profiles, marking the one a build usescpl judge <file> <input> [<output> <answer>]run the file's @interactor as a judge program on standard input and output, or with an output its @checker; exit status 0 acceptsTest and debug
cpl new <name>create a problem from its constraints or samplescpl test <problem>run every case in <problem>.tests/cpl watch <problem>check, lint and test on every savecpl stress <file>run against a brute on random inputs; shrink the failurecpl bench <problem>run on maximum-size worst-case inputs against the limitscpl profile <file> [input]run, then show each line's hits and share of the timecpl cover <file> [input]...list the lines and branches no input reachedEditors and docs
Other
cpl report <file>write a paste-ready bug report (--last after an ICE)cpl replay <file> --trace <t.json> --step <n>run one recorded call again with the file's edited fncpl self <command>update, switch or roll back the installed toolchain (cpl self --help); cpl +<toolchain> <command> runs one command with another, e.g. cpl +edge run a.cp