+ 8
Why this Code is not working on Sololearn Code Editor ?
Code Coach: https://www.sololearn.com/coach/64?ref=app https://www.sololearn.com/post/205017/?ref=app https://code.sololearn.com/cFDgi4TFrkDT/?ref=app
8 ответов
+ 6
+ 9
But ~ swim ~ that code shows Error.
why?
+ 8
~ swim ~ can you explain in detail please?
+ 6
I think problem can be in s, I will change it type from char * to string
+ 5
Also here cout<<*num[*(s+i)-'0'];
+ 5
And, you should delete one * to print whole string
cout<<num[*(str+i)-'0'];
+ 4
You declarate str but use s in getline