prog.cpp: In function ‘int main()’:
prog.cpp:15:18: error: declaration does not declare anything [-fpermissive]
std::list<int>::const_iterator;
^
prog.cpp:16:7: error: missing template arguments before ‘(’ token
list(myList.begin());
^
prog.cpp:17:7: error: missing template arguments before ‘(’ token
list(myList.end());
^
prog.cpp:18:8: error: ‘lit’ was not declared in this scope
for (;lit != lend;++lit){
^
prog.cpp:18:15: error: ‘lend’ was not declared in this scope
for (;lit != lend;++lit){
^