This is how to execute the program by gcc step by step: g++ Simulate.cpp A2.cpp -std=c++17 -o APE ./APE m n (m and n are represent for number of divisions and days respectively)