fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. constexpr int someConstant = 3;
  5. constexpr int *someConstantPointerToConstant = &someConstant;
  6.  
  7. int main() {
  8. // your code goes here
  9. return 0;
  10. }
Compilation error #stdin compilation error #stdout 0s 4328KB
stdin
Standard input is empty
compilation info
prog.cpp:5:48: error: invalid conversion from ‘const int*’ to ‘int*’ [-fpermissive]
 constexpr int *someConstantPointerToConstant = &someConstant;
                                                ^~~~~~~~~~~~~
stdout
Standard output is empty