blob: 1893e0353a92026e73f805874e55b83d70217d59 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include <iostream>
#include <list>
/*
*
* 9.6
*
*
*/
int main () {
std::list<int> lst1;
std::list<int>::iterator iter1 = lst1.begin(), iter2 = lst1.end();
while (iter1 != iter2) {
}
// Maybe it is a bit cheating but when compiling this code, there seems to be no '<' operators for the list container.
// Correct it by giving it the condition above
return 0;
}
|