Compiler output
prog.cpp:8:54: error: empty character constant
std::cout <<std::replace( s.begin(), s.end(), '-', '';',',' ,');<<'\n';
^
prog.cpp:8:61: warning: multi-character character constant [-Wmultichar]
std::cout <<std::replace( s.begin(), s.end(), '-', '';',',' ,');<<'\n';
^
prog.cpp: In function 'int main()':
prog.cpp:8:15: error: 'replace' is not a member of 'std'
std::cout <<std::replace( s.begin(), s.end(), '-', '';',',' ,');<<'\n';
^
prog.cpp:8:29: error: 's' was not declared in this scope
std::cout <<std::replace( s.begin(), s.end(), '-', '';',',' ,');<<'\n';
^
prog.cpp:8:56: error: expected ')' before ';' token
std::cout <<std::replace( s.begin(), s.end(), '-', '';',',' ,');<<'\n';
^
prog.cpp:8:61: warning: left operand of comma operator has no effect [-Wunused-value]
std::cout <<std::replace( s.begin(), s.end(), '-', '';',',' ,');<<'\n';
^
prog.cpp:8:65: error: expected ';' before ')' token
std::cout <<std::replace( s.begin(), s.end(), '-', '';',',' ,');<<'\n';
^
prog.cpp:8:66: warning: right operand of comma operator has no effect [-Wunused-value]
std::cout <<std::replace( s.begin(), s.end(), '-', '';',',' ,');<<'\n';
^
prog.cpp:8:67: error: expected primary-expression before '<<' token
std::cout <<std::replace( s.begin(), s.end(), '-', '';',',' ,');<<'\n';
^