Answers for "cpp errors"

C++
1

error handling in C++

try  {
       throw 10; //Error Detected and "Thrown" to catch block
    }
catch (char *excp)  { //if error is thrown matches this block, exec
        cout << "Caught " << excp;
    }
catch (...)  { //default case
        cout << "Default Exception\n";
    }
Posted by: Guest on January-11-2022
0

error in c++

==========	Error Status =========
  AC: Accepted
  WA: Wrong Answer 
  TLE: Time Limit Exceeded 
  MLE: Memory Limit Exceeded 
  OLE: Output Limit Exceeded 
  IR: Invalid Return 
  RTE: Runtime Error 
  CE: Compile Error
Posted by: Guest on June-05-2021

Browse Popular Code Answers by Language