https://ide.codingblocks.com/s/55364
error: terminate called after throwing an instance of ‘std::logic_error’ what(): basic_string::_M_construct null not valid
what does this error mean
https://ide.codingblocks.com/s/55364
error: terminate called after throwing an instance of ‘std::logic_error’ what(): basic_string::_M_construct null not valid
what does this error mean
Hi Kiran, you need to make the following changes to your code:
cout<<o;
at line number 27 after calling the duplicate function to print the output string.
I have corrected your code, you can refer to it here
https://ide.codingblocks.com/s/55421