Print fibonacci series c++ online assignment

what is the error in this code?
https://ide.codingblocks.com/#/s/22987

https://ide.codingblocks.com/#/s/23094

See this solution. I modified code you uploaded. It was not handling some cases.

your code is also not working

@ayushi773478
Please provide links to question from next time.
I think you are talking about this question
https://hack.codingblocks.com/contests/c/509/158
In this question you don’t need to print N fibonacci numbers, instead you just have to print the fibonacci numbers less than N.
So there has to be a change in the looping condition.
I hope you get it.

i think we have cleared the doubt on whtsapp group.

https://ide.codingblocks.com/#/s/23727
time limit exceeded error

https://ide.codingblocks.com/#/s/23785
See this solution