void solve() { stack<int> s; s.push(1); s.push(2); s.push(3); for(int i = 1; i <= 3; i++) { cout << s.top() << " "; s.pop(); }}
Not registered? Create an account
Forgot Password?
Already a registered user? Login