0
Whats the problem of code that doesnt run properly on sololearn code playground and how we can write this code in VS C++?
2 odpowiedzi
+ 2
Masoud HMD code works fine for me on sololearn playground... what is the test case which fails for you ?
I tried with Ketan 1 and Ketan 4 test cases...
please note that sololearn app takes all input at one go seperated by lines onces your code execution starts...so, hope you are following this and providing string and position input seperated by space or new line at starting of the code execution
0
Ketan Lalcheta thats right but there are 2 probs:
1st: if u use separated words like for example “computer science” and target to delete the position 8, that wont do it, means that the compiler takes it up to null and the 2nd input gets bypassed and automatically position [0] get deleted which in C language non of those happens.
2nd: we cant use “strcpy” function in such a that way and gives unsafe function and overloading.