Compile error in code

http://p.ip.fi/kF4X
why this code is giving compile error

hey @tusharkhandelwal315 i have commented your mistake -


You have to make another function in class to allocate space to vector , u can’t directly give it while declaring.

Hope this resolved your doubt.
Remember to mark it as resolved in my doubts
section :smiley: