prog.cpp:2:1: error: ‘stack’ does not name a type
stack<int> stack;
^~~~~
prog.cpp:3:1: error: expected unqualified-id before ‘for’
for (int i = 0 ; i < N; ++i) {
^~~
prog.cpp:3:18: error: ‘i’ does not name a type
for (int i = 0 ; i < N; ++i) {
^
prog.cpp:3:25: error: expected unqualified-id before ‘++’ token
for (int i = 0 ; i < N; ++i) {
^~