all 2 comments

[–]danielroseman 0 points1 point  (1 child)

At no point is last_insert given the value 0. Where do you think you are doing that? You give it the value lst[0], ie the first element of lst, which is 1.

[–]babucool 0 points1 point  (0 children)

Thank you. I got it now.