This is an example of Partial Judge C++ Question
You are given main.cpp and function.h, and you need to make a new file function.cpp and submit it to OJ
You can download main.cpp and function.h in below
Here is the answer for this online judge:
To compile main.cpp, function.h, function.cpp, you can try type command below in the terminal:
g++ -std=c++17 -o main.exe function.cpp main.cpp