fork download
  1. int main()
  2. {
  3. char * cstr = "Blebleble"; // łańcuch
  4. char *& cstrref = str; // referencja do łańcucha
  5. //...
  6. char ch = 'z'; // znak
  7. char &* chptrref = & ch; // referencja do adresu znaku
  8.  
  9. return 0;
  10. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:3: warning: deprecated conversion from string constant to ‘char*’
prog.cpp:4: error: ‘str’ was not declared in this scope
prog.cpp:7: error: cannot declare pointer to ‘char&’
prog.cpp:3: warning: unused variable ‘cstr’
prog.cpp:4: warning: unused variable ‘cstrref’
prog.cpp:7: warning: unused variable ‘chptrref’
stdout
Standard output is empty