Can anyone please tell me what's wrong with my code?

long_challenge
sept18b
tabgame

#1

#include

using namespace std;

int main()
{
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int t;
cin>>t;
while(t–)
{
string s,ss;
cin>>s>>ss;
char a[ss.length()],b[s.length()],fix;
if((s[0]==‘0’)||(ss[0]==‘0’))
{
fix=‘1’;
}
else
fix=‘0’;
a[0]=b[0]=fix;
for( int i=1;i<s.length();i++)
{
if((s*==‘0’)||(b[i-1]==‘0’))
{
b*=‘1’;
}
else
b*=‘0’;
}
for( int i=1;i<ss.length();i++)
{
if((ss*==‘0’)||(a[i-1]==‘0’))
{
a*=‘1’;
}
else
a*=‘0’;
}

   int q;
   cin>>q;
   while(q--)
   {
      int l,m;
      cin>>l>>m;
      if(l==m)
      {
          cout<<a[0];
      }
      else
      {
          if(l>m)
          {
              cout<<a[l-m];
          }
          else
          {
            
                cout<<b[m-l];
          }
      }
   }
   cout<<"

";

}

return 0;
}


#2

plz use code writing filter it is provided on the taskbar of box .

then may be i will be able to read your code and tell you what error it is having

happy coding ; )