can you please tell why is the error coming??
Link: https://ide.codingblocks.com/s/97557
Problem_in_code
Hi Parv
If you are talking about the stack error,then there is a name collision between your int variable s and stack s.
Name them differently.
1 Like
Yes, as mam said you have declared the same variables s twice within the same scope which is causing this error.