why isnt the sysytem accepting my solution for flow 001

#include
using namespace std;
int main()
{
int t,a,b,ans;
int output[100];
cin>>t;
if(t>=1&&t<=1000)
{
for(int i=1;i<=t;i++)
{
cin>>a;cout<<"\t";cout<<b;
if(a>=1&&b>=1&&a<=1000&&b<=1000)
{
ans=a+b;
output[i-1]=ans;
}
}
for(int k=0;output[k]!=’\0’;k++)
{
cout<<output[k]<<endl;
}
}
return 0;
}
why isnt it accepting this solution where is the problem

//