+ 12
My Pig Latin code works correctly but doesn't pass any test in Code Coach⁉️🤔
https://code.sololearn.com/cE0JT4qSxSAV/?ref=app There are no spaces at the beginning & end of my output‼️ I also tried with " " and ' '‼️ My result is the same as expected‼️
17 Respostas
+ 5
for (i=1; i<int(strlen(w)); i++)
Remove the = and should work
+ 8
Mihai Apostol Thx, UR genius ‼️😃
With "=" I probably cout'ed the invisible '\0' character, which ends the string so the visible output was correct but tests failed ⁉️🤔
HonFu Thx, U2 tried ‼️😃
+ 8
Александр Ширяев Thx a lot ‼️ but now, my code is working correctly in CC‼️😃
But there is one interesting thing⁉️🤔
One week ago, your /& my/ code wouldn't pass the CC tests because it leaves "space" character after the last word / ... << "ay" << " " / . Earlier CC tests were more rigorous & not pass such bugs. It was a problem because the leading and trailing spaces in the string are invisible so I have to use lines 13 & 14 in my code /superfluous now/.
But probably, SoloLearn crew has softened approvals and let a space at the end of the sentence.
BTW why are you using variable "n"⁉️🤔
+ 8
Александр Ширяев It's 🆗‼️
Nobody is perfect‼️ but you are trying ‼️🤔☺️😃
+ 7
Coder Kitten
Thx, excellent advice‼️😃
Now I see clearly‼️🤣
+ 7
RudyNieRadosny
More szczęścia & RADOŚCI in new year 2020‼️☺️😃🤣😁
+ 7
Edward SoloLearn crew sanitized input data in some CC challenges⁉️ Check f.ex. "It's a Sign" & "Splitting Strings"‼️
+ 6
Some inputs in code challenge are “dirty” with non-printable characters. I struggled in a couple of them, until I began to sanitize every input.
+ 6
Edward UR right ‼️ but this time I "produced" one extra character which was difficult to debug bcs his invisibility ‼️🤔
+ 3
I've only been studying programming for 2 months, and on my own. My codes are far from perfect.
+ 2
Strange. Looks like it should work.
+ 2
I haven't done it in c++. I did it in Ruby, with the "chomp" method. I will keep this in mind when I try it in C++. Thank you.
+ 1
I Can't 😢😭 understand at all
+ 1
wow
+ 1
You can use my code. word=ordway.
+ 1
Spasibo :)
- 3
Debilu jd