Why this error is coming

hello @rssrivastavarohan
l and V are the member variable , only member functions can access them.

Please solve the error:

put all functions inside ur class .it will work.

check ur corrected code-> https://ide.codingblocks.com/s/231724