Fibonacci Pattern

TLE Error.
Solution Link-https://ide.codingblocks.com/s/652997

you forgot to take n from user
cin>>n;

after that you will not get TLE

Can i see the editorial if i had got 100 points in the question

yes sure
after getting full marks you can see editorial

submissions after seeing editorial will not be awarded