fork download
  1. #include <iostream>
  2.  
  3. int main() {
  4. char s[] = "nemyx not found";
  5. void * p;
  6. p = (void *)0xdeadbeef;
  7.  
  8. std::cout << "Invalid memory at address " << std::showbase << std::hex << p << ", error: " << s << std:: endl;
  9. return 0;
  10. }
Success #stdin #stdout 0.01s 5372KB
stdin
Standard input is empty
stdout
Invalid memory at address 0xdeadbeef, error: nemyx not found