Test Case for DSA Learning Series

Hi, I am getting the correct answer for the testcase given in problem here: https://www.codechef.com/LRNDSA01/problems/LAPIN

But, getting wrong answer on submission. Nor can I see the testcase for which answer is coming wrong.

Here is my code:
#include
using namespace std;
int main() {
int t; cin>>t;
while(t–){
string x; cin>>x;
int l=x.length(); string a1, a2;
int p=0;int q=0;
for(int i=0; i<l/2; i++){ p+=(int)x[i];}
if(l%2==0){ for(int i=l/2; i<l; i++){q+=(int)x[i];}}
else { for(int i=l/2+1; i<l; i++){ q+=(int)x[i];} }
//cout<<p<<" "<<q<<endl;
if(p==q)cout<<“YES”<<endl;
else cout<<“NO”<<endl;
}
return 0;
}

It would be a great help if someone could point out what’s wrong in this code, or provide a link to the testcases of this problem(if there’s any).