1 #include<iostream>
2 #include<stack>
3 #include<deque>
4 using namespace std;
5
6
7 int main()
8 {
9 stack<int> first;
cout << "size of first: " << first.size() << endl;
for (int i=; i<; i++)
first.push(i);
cout << "size of first: " << first.size() << endl;
while( !first.empty() )
{
cout<<first.top()<<' ';
first.pop();
}
cout<<endl;
deque<int> deq(,);
stack<int> second( deq );
cout << "size of second: " << second.size() << endl;
while( !second.empty() )
{
cout<<second.top()<<' ';
second.pop();
}
cout<<endl;
return ;
}