Use oj login to login to the account in OnlineJudge. It required you to enter your account information so that oj-cli could access OnlineJudge service successfully. After entering your username and password. oj-cli will respond if you login successfully or not.
$ oj login
Username:
Password:
OJ-CLI
Commands
oj get_assign <assign_no>
Use oj get_assign <assign_no> to download the latest assignment from contest. The downloaded files are stored in folder hwX or exX. The folder includes testing data, output data, and template C script, which are named as 1.in, 1.out, and hwX.c(or exX.c) separately.
$ oj get_assign hw2
$ oj get_assign ex2
OJ-CLI
Commands
oj submit <assign_no> <code_file>
Use oj submit <assign_no> <code_file> to submit your code to contest.