what is Runtime Error :You passed invalid value. Exiting." mean.
what is Runtime Error :You passed invalid value. Exiting." mean. \n\nclass ZeroEvenOdd {\nprivate:\n  int n;\n  std::atomic<int> current;\n  std::atomic<bool> i
what is Runtime Error :You passed invalid value. Exiting." mean. \n```\nclass ZeroEvenOdd {\nprivate:\n  int n;\n  std::atomic<int> current;\n  std::atomic<bool> is_zero_turn;\n\npublic:\n  ZeroEvenOdd(int n) {\n        this->n = n;\n        current.store(0);\n        is_zero_turn.store(true);\n    }\n\n    // printNumber(x) outputs "x", where x is an integer.\n  void zero(std::function<void(int)> printNumber) {\n        while(current < n){\n            while(!is_zero_turn){\n              std::this_thread::yield();\n            }\n            printNumber(0);\n            is_zero_turn = false;\n            current++;\n        }\n    }\n\n  void even(std::function<void(int)> printNumber) {\n        while(current <= n){\n            while(is_zero_turn){\n              if(current == n)\n                return;\n              std::this_thread::yield();\n            }\n            if(isEvent(current)){\n                printNumber(current);\n                is_zero_turn = true;\n            }\n        }\n    }\n\n  void odd(std::function<void(int)> printNumber) {\n        while(current <= n){\n            while(is_zero_turn){\n              if(current == n)\n                return;\n              std::this_thread::yield();\n            }\n            if(!isEvent(current)){\n                printNumber(current);\n                is_zero_turn = true;\n            }\n        }\n    }\n\n    static inline bool isEvent(int x){\n        return (x & 1);\n    }\n};\n```
[]