prog.cpp: In function ‘int main()’:
prog.cpp:5:3: error: ‘Stack’ was not declared in this scope
Stack st=new Stack();
^~~~~
prog.cpp:6:9: error: ‘st’ was not declared in this scope
st.push(1);
^~
prog.cpp: At global scope:
prog.cpp:24:2: error: expected unqualified-id before ‘return’
return 0;
^~~~~~
prog.cpp:25:1: error: expected declaration before ‘}’ token
}
^