fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. unsigned int M = 5;
  6. const int** m = new const int*[M];
  7.  
  8. m[3][2] = 2015;
  9.  
  10. return 0;
  11. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:8:10: error: assignment of read-only location '*((*(m + 12u)) + 8u)'
  m[3][2] = 2015;
          ^
stdout
Standard output is empty