# Hacker Rank solution for Solve Me First in C++

Problem:- Solve Me First - Hacker Rank Solution or Solve Me First solution or Solve Me First solution in C++ or Solve Me First hacker rank solution in Java or Solve Me First hacker rank solution c++ or Solve Me First hacker rank solution c++ or Solve Me First program in c or Solve Me First solution in c or Solve Me First hacker rank solution in python or Solve Me First in java or Solve Me First hacker rank solution in c or Hacker Rank Solution For Solve Me First in C++ or Solve Me First in C++ or Hacker Rank solution for Solve Me First in C++.

Check This- Hacker rank Solution for C++ Sub Domain Introduction, Classes, STL, Inheritance.

Logic:- There is no logic just return the sum of variable a and variable b by using return a + b;

For more about functions problem and function related solution click here for a huge collection of function program is waiting for C++ functions and for C functions.

Also check- Geeksforgeeks solution for School, Basic, Easy, Medium, Hard Domain.

Copy the full solution or colored code and paste into the hacker rank editor and click to Run Code if the code runs successfully then click to Submit Code. Before pasting the code into the editor make sure you have chosen c++ editor in the top right drop down option.

If you have any query feel free to share with me, and if you like my work please share, comments and subscribe for our new and latest post related to programming this will help you update all about new post this Article.

Solution:-

#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;

int solveMeFirst(int a, int b)
{
// Hint: Type return a+b; below:
return a+b;
}
int main()
{
int num1, num2;
int sum;

cin>>num1>>num2;

sum = solveMeFirst(num1,num2);
cout<<sum;
return 0;
}

Output:-