C++ solution passes when running test but doesn't pass submission.
Very simple C++ Solution\n\nclass DiningPhilosophers {\npublic:\n   \n    DiningPhilosophers() {\n\n    }\n    \n    mutex m;\n\n    void wantsToEat(int philoso
Very simple C++ Solution\n```\nclass DiningPhilosophers {\npublic:\n   \n    DiningPhilosophers() {\n\n    }\n    \n    mutex m;\n\n    void wantsToEat(int philosopher,\n                    function<void()> pickLeftFork,\n                    function<void()> pickRightFork,\n                    function<void()> eat,\n                    function<void()> putLeftFork,\n                    function<void()> putRightFork) {\n        \n        lock_guard<mutex> lg(m);\n        \n        pickLeftFork();\n        pickRightFork();\n        eat();\n        putLeftFork();\n        putRightFork();\n        \n    }\n};\n```\n\nThis solution fails submission with an input of n = 40.\nHowever, a test case with the same criteria comes out as accepted.\n\nIs there a reason the same input works for testing but not for submissions?\n\nPS: The python equivalent solution passes submission.
[]