You are viewing a single comment's thread. Return to all comments →
I don't know what's wrong with this code it's just passed one test case
Server server; try{ cout<<server.compute(A,B)<<endl; } catch(bad_alloc& e) { cout<<"Not enough memory"<<endl; } catch(exception& e) { cout<<"Exception: "<< e.what()<<endl; } catch(...) { cout<<"other exception"<<endl; }
Exceptional Server
You are viewing a single comment's thread. Return to all comments →
I don't know what's wrong with this code it's just passed one test case