#include "stdafx.h"
#include<list>
#include<iostream>
using namespace std;
ostream& operator<<(ostream& out, list<int>& a){
list<int>::iterator iter;
for(iter=a.begin(); iter!=a.end(); iter++)
out<<*iter<<" ";
out<<endl;
return out;
}
int main(){
list<int> A;
for(int i=0;i<10;i++)
A.push_back(i*i);
cout<<A;
system("pause");
}