Coding Games and Programming Challenges to Code Better
Send your feedback or ask for help here!
Coding Games and Programming Challenges to Code Better
Send your feedback or ask for help here!
I pass all validators in IDE, but it fails on the submit it fails on 4_validator ![]()
Any advice ?
I had a similar problem and, in my case, it was that there can be uppercase characters in variable names (consider a-z, A-Z, 0-9 and “_”).
I failed validator 4 too, with a non-regex based solutions, anyone can give hints on what are the inputs for that validator please ? ^^
No idea. The puzzle is too old and I don’t see a way to access its contribution view.
I don’t use any regex in my solution code either.
If needed, you may send me your code via private message and I’ll take a look.
Several misconceptions in descriptions and lack of clarity
'Next character is a quote\' !!! '
'This sentence contains many \t\t\t\t\t\t characters !!!'
No mention as to whether dollar signs alone and variables enclosed between dollar signs will appear in quotes too. Presumably so, test cases for these should be added
$dollar$ in 'quotes $dollar'
and
Single dollar sign in 'quotes $cuz why not?'
Without access to the validators, we cannot say for sure that certain situations appear in the cases or not. It’s not appropriate to amend the statement based on the visible tests only.
And it doesn’t matter, because we don’t even have a way to amend the puzzle - probably only CG staff can do it.
The following custom case may help those who fail Validator 4 debug their code:
Input
6
print ' George printed the instructions ';
$b$ = ' George lost the book ';
$z$;
print $b$;
$x$;
print ' Ada printed the script ';
Output
print' George printed the instructions ';$a$=' George lost the book ';$b$;print$a$;$c$;print' Ada printed the script ';