Note:- The package has been fairly tested for MacOS and Linux. However Windows users might face some issues. Please open one in the repo if you do..
Install package either by running
apm install afcp from the terminal or by searching in the Install menu from Atom.
You will also need to install the following to use the package properly.
brew install coreutils.
Add directory locations for each site i.e where you want the folder for the problems to be created.
An example location can look like this:-
Important. Don't forget to add a
/(for MacOS and Linux) or
\ (for Windows) at the end of the location.
You can drag and drop the folder into terminal to get the paths
coreutils is used to make sure that your code doesn't goes into an infinite loop. The time limit right now is
5 seconds which can be edited from the setting menu.
alt+control+k to open the pane. Check the site radio button and put the contest code into the input field. Press
Fetch Data .
A folder will be created for each of the problems with their test cases in the directory that you specify in the settings menu.
In order to close the pane press again
alt+control+c to compile. One output file will be generated for each and every file that starts with
input in the folder where
.cpp file is.
In order to create your own test cases create a input*.txt file in the same directory of the problem replacing * with a integer.
Corresponding output file can be generated by pressing
Install the following packages for using atom to code in C/C++. To install them go to
Preferences and search them by typing their name.
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.