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’