Error in code in video , at 2:55 , please help

in linked list implementation based queue there is an error in code "no known conversion for argument 1 from ‘int’ to ‘Queue&&’ "… the code ran because the previous code based on array implementation (in previous video) works and was saved as run file

I have made the same code as in video … when I run it it shows the same errors
–> https://ide.codingblocks.com/s/213752

please help …

Hi there is just a small error in the code
u are calling a paramterised constructor from int main and u havent declared it in the class
since the paramter value is not required remove it from int main object
Queue q ;
would suffice and no error occurs

1 Like

Thanks, I got it now … :slight_smile:

1 Like