fork download
  1. #include"CStack.hpp"
  2.  
  3. using namespace bai25;
  4. int main()
  5. {
  6.  
  7. CStack stack(0);
  8. stack.Push(1);
  9. stack.Push(2);
  10. stack.Push(3);
  11. stack.Push(4);
  12. stack.Push(5);
  13. stack.Push(6);
  14. stack.Push(7);
  15. stack.Push(8);
  16. stack.Push(9);
  17.  
  18. cout<<"-------------------------------------------------------------"<<endl;
  19.  
  20. // core dump
  21. char i = 0;
  22. while(i < 10)
  23. {
  24. stack.Push(static_cast<int32_t>(i));
  25. ++i;
  26. }
  27. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:21: fatal error: CStack.hpp: No such file or directory
 #include"CStack.hpp"
                     ^
compilation terminated.
stdout
Standard output is empty