# 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.

Tip:- 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:-

Previous Post
Next Post

#### post written by: Ghanendra Yadav

Hi, I’m Ghanendra Yadav, SEO Expert, Professional Blogger, Programmer, and UI Developer. Get a Solution of More Than 500+ Programming Problems, and Practice All Programs in C, C++, and Java Languages. Get a Competitive Website Solution also Ie. Hackerrank Solutions and Geeksforgeeks Solutions. If You Are Interested to Learn a C Programming Language and You Don't Have Experience in Any Programming, You Should Start with a C Programming Language, Read: List of Format Specifiers in C.