+ 1
Whats problem to my (Extra-Terrestrial) c++ code?
The output is correct, but the coach code fail in all test cases. Whats is wrong? https://code.sololearn.com/ce4dt4cfrdrv/?ref=app
3 Antworten
+ 6
You need to avoid the null character.
if(inp[i] != ' '&&inp[i] != '\0' ){
}
+ 3
for(int i = strlen(inp)-1; i>=0; i--)
put like this and should be fine
+ 1
Thanks for help me! 👍