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.
thank you for your expanation.
but the code you have provided works only for handling the exceptions of A being negative or B being zero, it returns a runtime error when the exception is related to memory allocation. can you hint at what could be wrong? the code is exactly the same as yours
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Exceptional Server
You are viewing a single comment's thread. Return to all comments →
thank you for your expanation. but the code you have provided works only for handling the exceptions of A being negative or B being zero, it returns a runtime error when the exception is related to memory allocation. can you hint at what could be wrong? the code is exactly the same as yours