For this Question: Sara is trying a new magic trick on you, The magic trick goes in 6 steps:-
1. Think of a number X(don't tell Sara)
2. Add A(Given by Sara) to it.
3. Double the sum in your mind.
4. Add an even number B(Given by Sara) to it.
5. Half the amount 
6. Subtract the initial number which you had taken from the sum
After this Sara will tell the resulting amount without knowing the initial number, can you print the result for her?
<b>Note: B is always even. </b>You don't have to worry about the input, you just have to complete the function <b>magicTrick()</b>

<b>Constraints</b>:-
1 <= A, B <= 1000Print the resulting amountSample Input:-
3 4

Sample Output:-
5

Sample Input:-
8 4

Sample Output:-
10, I have written this Solution Code: void magicTrick(int a, int b){
    cout<<a+b/2;
}, In this Programming Language: C++, Now tell me if this Code is compilable or not?