-
Download from the latest release from here.
-
Unpack the file.
-
Run the following command:
python setup.py install
NOTE: You need to be root to do this. Switch to root or use sudo.
-
Save your source file in the following format:
ContestIDProblemID.extension
Examples: 608a.cpp, 608b.cpp, 604b.py, 602.java
NOTE: Contest ID is found in the URL of the problem. Contest ID is not same as Round Number. -
Testing your program:
Run the following command:cfcli -t <compiler> <path-to-file> [<compiler_options>]
Example:
cfcli -t g++ ~/Codes/608a.cpp -std=c++14
Get more usage info by using the -h option
cfcli -h