fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6.  
  7. int const** arr;
  8.  
  9. arr = const_cast<int const**>(new int*[1]);
  10. arr[0] = new int[1];
  11. arr[0][0] = 0;
  12.  
  13. return 0;
  14. }
Compilation error #stdin compilation error #stdout 0s 2856KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:11: error: assignment of read-only location '*(* arr)'
stdout
Standard output is empty