fork download
  1. #pragma once
  2. #include "string"
  3. #include "iostream"
  4.  
  5. using namespace std;
  6.  
  7. class Stos
  8. {
  9. private:
  10. int *tab;
  11. long size;
  12. long last;
  13. long Numbers;
  14.  
  15. public:
  16. Stos(void);
  17. Stos(long lSize);
  18. void Push(int elem);
  19. int Pop();
  20. const int& Top();
  21. void GrowStack();
  22. long GetNumbers();
  23. unsigned Stos::Stack0();
  24. public:
  25. ~Stos(void);
  26. };
  27.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:9: warning: #pragma once in main file [enabled by default]
 #pragma once
         ^
prog.cpp:23:11: error: extra qualification ‘Stos::’ on member ‘Stack0’ [-fpermissive]
  unsigned Stos::Stack0();
           ^
stdout
Standard output is empty