We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- C++
- Classes
- Exceptional Server
- Discussions
Exceptional Server
Exceptional Server
Sort by
recency
|
173 Discussions
|
Please Login in order to post a comment
Here is Exceptional Server problem solution in C++ - https://programmingoneonone.com/hackerrank-exceptional-server-solution-in-cpp.html
I cannot see the stub code, only an empty main function and the includes. I assume there should be more code pre-written. I'm experiencing the same in other challenges as well.
Yes switch to c++14 or previous .
there appears to be a problem with the server load stub code, as it's not being printed even after successful custom example output
try { int res = Server::compute(A, B); if((A % B) == A) out_of_range("Accessing out of range"); } catch(bad_alloc& e) { cout << "Not enough memory " << endl; } catch(exception& e) { cout << "Exception: " << e.what() << endl; } catch(...) { cout << "Other Exceptions " << endl; }
When I test the failed testcases by using "Custom" input option, these test cases are passing with this code. But when all the test cases are run after submisson, 9/10 test cases are showing as failed. Any inputs on why this is happening would be appreciated.