14610 - Partial JudgeC++Example   

Description

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:

#include "function.h"

Math::Math() {
     // Constructor implementation here
}

int Math::add(int a, int b){
     return a + b;
}

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

Input

Output

Sample Input  Download

Sample Output  Download

Partial Judge Code

14610.cpp

Partial Judge Header

14610.h

Tags




Discuss