Error in the given code

I am not able to debug the error which appears while i try to run the given code at my machine. The error is as follows:

/Users/lalitwadhwa/Desktop/1.cpp:47:17: error: expected ‘;’ at end of declaration
list l1{1, 2, 3, 10, 8, 5};
^
;
/Users/lalitwadhwa/Desktop/1.cpp:50:20: error: expected ‘;’ at end of declaration
list l2{“apple”, “guava”, “mango”, “banana”};
^
;

Kindly help.

Please save your code on ide.codingblocks.com and share its link.

the same code is running on the coding blocks ide but not on my machine

Ok…still you can save your code on ide.codingblocks.com and share its link. I will check.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.