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