fork(4) download
  1. int main() {
  2.  
  3. int* p;
  4. p = p;
  5. ++p;
  6.  
  7.  
  8. int arr[3];
  9. // arr = arr;
  10. // ++arr;
  11.  
  12. p = arr;
  13.  
  14. const int* cp;
  15.  
  16. p = cp;
  17.  
  18. return 0;
  19. }
  20.  
Compilation error #stdin compilation error #stdout 0s 3092KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:16:5: error: invalid conversion from 'const int*' to 'int*' [-fpermissive]
   p = cp;
     ^
stdout
Standard output is empty