#include <iostream>
#include "stack.h"
int main() {
Stack<int> a;
try {
a.top();
} catch (std::exception& e) {
std::cerr << e.what() << "\n";
}
a.push(10);
a.push(100);
a.push(1000);
a.push(10000);
a.pop();
std::cout << a.top() << " " << a.size() << "\n";
Stack<int> b;
b.push(1);
b.pop();
b.push(2);
b = a;
a.pop();
std::cout << b.top() << " " << b.size() << "\n";
Stack<int> c;
Stack<int> d;
d = c;
c.push(1);
c.stack_print();
Stack<int> e(c);
e.push(80);
e = a;
e.stack_print();
}