Help me in solving LBCV201A problem

My issue

My code

#include<iostream>
using namespace std;
int main()
{
    int t;
    cin>>t;
    while(--t)
    {
    int A,B,C;
    cin>>A>>C;
    B=(A+C)/2;
    if(
    {
        cout<<B<<endl;
    }
    else
       cout<<"-1";
    }
    return 0;
}

Learning course: C++ for problem solving - 1
Problem Link: CodeChef: Practical coding for everyone

@surbhisingh242
Your code is syntactically incorrect u have to put condition for if ,
and the condition for which u will have a valid answer if both A and C should be either even or odd
and for else case the answer would be -1;