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.