#include <iostream> using namespace std; int main() { // your code goes here const wchar_t* wc_str = L"Hello world!"; const char* c_str = wc_str; return 0; }
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:8:22: error: cannot convert ‘const wchar_t*’ to ‘const char*’ in initialization const char* c_str = wc_str; ^ prog.cpp:8:14: warning: unused variable ‘c_str’ [-Wunused-variable] const char* c_str = wc_str; ^
Standard output is empty