prog.cpp:2:19: error: stack.h: No such file or directory
prog.cpp:3: error: ‘Stack’ has not been declared
prog.cpp:3: error: ISO C++ forbids declaration of ‘Stack’ with no type
prog.cpp: In function ‘int Stack()’:
prog.cpp:5: error: ‘top’ was not declared in this scope
prog.cpp: At global scope:
prog.cpp:8: error: ‘Stack’ is not a class or namespace
prog.cpp:8: error: non-member function ‘bool isempty()’ cannot have cv-qualifier
prog.cpp: In function ‘bool isempty()’:
prog.cpp:10: error: ‘top’ was not declared in this scope
prog.cpp: At global scope:
prog.cpp:13: error: ‘Stack’ is not a class or namespace
prog.cpp:13: error: non-member function ‘bool isfull()’ cannot have cv-qualifier
prog.cpp: In function ‘bool isfull()’:
prog.cpp:15: error: ‘top’ was not declared in this scope
prog.cpp:15: error: ‘MAX’ was not declared in this scope
prog.cpp: At global scope:
prog.cpp:18: error: ‘Stack’ is not a class or namespace
prog.cpp:18: error: expected ‘,’ or ‘...’ before ‘&’ token
prog.cpp:18: error: ISO C++ forbids declaration of ‘Item’ with no type
prog.cpp: In function ‘bool push(int)’:
prog.cpp:20: error: ‘top’ was not declared in this scope
prog.cpp:20: error: ‘MAX’ was not declared in this scope
prog.cpp:22: error: ‘items’ was not declared in this scope
prog.cpp:22: error: ‘item’ was not declared in this scope
prog.cpp: At global scope:
prog.cpp:29: error: ‘Stack’ is not a class or namespace
prog.cpp:29: error: ‘Item’ was not declared in this scope
prog.cpp:29: error: ‘item’ was not declared in this scope
prog.cpp:30: error: expected ‘,’ or ‘;’ before ‘{’ token