Skip to content

Components of a setup folder

junikimm717 edited this page Jan 10, 2021 · 1 revision

Components

Every setup folder has the following components:

test.sh - a shell script that automates the execution and displaying of test results. I generally map F5 to run test.sh.
The script should be able to compile and execute a file through all of the test cases and display the diff between the official answer and the output of the program.

download.py - a python script that gets inserted into the folder by make_prob.py. Generates an HTTP Server that can be used to connect with competitive companion. This is so you never copy and paste your input more than once.

source file - contains the source code for your file.

Additional:

Makefile - allows me to compile c++ files efficiently with compile flags. I tend to use debug flags in order to catch memory-related issues.

bits/stdc++.h and ext/pb_ds/assoc_container.hpp - headers that I precompile. You can compile them by running "make header" and remove them by running "make noheader"

Clone this wiki locally