What is the error in this code

#include
using namespace std;
int main() {

int t1=0,t2=1,nextterm;
int i,n;
cin>>n;
cout<<“fibbonaci series is\n”;
cout<<t1<<endl;

for(i=1;i<n;i++)
{for(int j=0;j<=i;j++)
{

if((i==1)&&(j==0))
{
cout<<t2<<" ";
continue;}
    nextterm=t1+t2;
    cout<<nextterm<<"  ";
    t1=t2;
    t2=nextterm;
}cout<<endl;

}
}

@Namanjain123 hey naman there basically two error in your code the first one is that you don’t need to consider the value at i==1 and j==0
simply apply a loop print your t1 inside the nested loop and all the go test cases will work fine.

still getting testcases failed

@Namanjain123 hey naman share your code through ide.codingblocks.com I will debug your code