fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. enum STAN{
  5. stan_poczatkowy,
  6. stan_ID,
  7. stan_PIN,
  8. stan_akcje
  9. };
  10.  
  11. int main() {
  12.  
  13. STAN stan = stan_poczatkowy;
  14. switch (stan) // w tej linijce wywała błąd
  15. {
  16. case stan_ID: {
  17. if(true)
  18. {
  19. //akcja
  20. }
  21. else
  22. {
  23. //akcja
  24. }
  25. }
  26. case stan_PIN:{
  27. do{
  28. if(true)
  29. {
  30. //akcja
  31. }
  32. else
  33. {
  34. //akcja
  35. }
  36. }while(true);
  37. }
  38. default:{
  39. //akcja
  40. break;
  41. }
  42. }
  43. return 0;
  44. }
Success #stdin #stdout 0s 3292KB
stdin
Standard input is empty
stdout
Standard output is empty