Skip to content
Aditya Kumar edited this page Sep 19, 2020 · 2 revisions

run

Usage

cpcli -c cf::1339 run -h
usage: cpcli run [-h] [-s SOLUTION_FILE] question

positional arguments:
  question              Substring representing Question Name or 1 based index

optional arguments:
  -h, --help            show this help message and exit
  -s SOLUTION_FILE, --solution-file SOLUTION_FILE
                        Path of the program file (different from default file)
  • By default, run will take the default <Problem-Name>.cpp file inside the respective contest directory. To specify another solution file, use the -s flag.
  • Verifying samples for interactive for interactive problems are not yet supported. If a problem has multiple answers and any one of them needs to be shown, the checker won't be able to test and would result in WA verdict.

Example

cpcli -c cf::1339 run 3
# OR
cpcli -c cf::1339 run powered
# OR
cpcli -c cf::1339 run add
[#] Checking question: C-Powered-Addition
[#] Sample Test Case 1: ✅

OR

[#] Checking question: C-Powered-Addition
[#] Sample Test Case 1: ❌ (WA)
Sample Input:
 ...

Sample Output:
 ...

Your Output:
 ...

OR

[#] Checking question: C-Powered-Addition
[#] Sample Test Case 1: ❌ (TLE) [>1 sec]
Clone this wiki locally