fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. const int x = 5;
  5.  
  6. int main() {
  7. int* p = const_cast<int*>(&x);
  8. *p = 10;
  9. return 0;
  10. }
Runtime error #stdin #stdout 0s 3292KB
stdin
Standard input is empty
stdout
Standard output is empty