fork download
  1. #ifndef __STACK_HPP__
  2. #define __STACK_HPP__
  3.  
  4. #include"cstdint"
  5. #include"iostream"
  6.  
  7. #define MAX 10
  8.  
  9. using namespace std;
  10. namespace bai25{
  11. class CStack{
  12. private:
  13. uint8_t counter;
  14. public:
  15. int32_t *stack;
  16. public:
  17. CStack();
  18. CStack(int32_t stack);
  19. ~CStack();
  20. bool IsEmpty();
  21. bool IsFull();
  22. void Push(const int32_t data);
  23. void Pop();
  24. };
  25. };
  26.  
  27. #endif
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/Scrt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty