fork download
#include 
#include 

int main() {
	std::list alist;
	alist.push_back(0);
	alist.push_back(1);
	alist.push_back(2);

	std::list::iterator iter = alist.begin();
	std::cout << *iter << std::endl;
	--iter;
	std::cout << *iter << std::endl;
}
Success #stdin #stdout 0.02s 2856KB
stdin
Standard input is empty
stdout
0
-1078599472