0
Pig Latin fails test 3
Hi! Why does this code fail the third test? Any suggestions? https://code.sololearn.com/c4bxX8FRfU51/?ref=app
5 Respuestas
+ 2
Maybe take a look at this thread:
https://www.sololearn.com/discuss/2105210/?ref=app
+ 1
I used this for input:
fgets(s, 120, stdin);
The test is strange with length. Try with decreasing MAX.
+ 1
I've already tried 50, 99, 100 and 120 but the result is the same.
+ 1
Well... It looks stupid because so far I thought that English words consist only of letters [A-z] (without punctuation marks) but the code below passes all tests fine. Thank you, Paul.
https://code.sololearn.com/cWeHd9Y8p6Up/?ref=app
0
In this code I took into account the EOF signature. There is no need to create an array.
https://code.sololearn.com/cqfM6xrI31TF/?ref=app