+ 2
[SOLVED] C++ course
This is one of the first program of the C++ course. The output of my code is exactly like that of the example but it doesn't pass as correct😭 I tried different variations with spaces and << endl, but it won't work 😭 Do you know the reason why? https://code.sololearn.com/c79vh7Kb50zm/?ref=app
3 Réponses
+ 2
Apparently, you have to have a space at the end of the lines.
cout << "Roses are red \nViolets are blue \nI love C++ \nAnd you will like it too!";
+ 3
I thought I tried it, but evidently I forgot one of the spaces or maybe I had one more somewhere.
Anyway thank you so much 🤗
+ 3
Ya, this one is on SL. That was total BS. I tried multiple variations that all should have passed. Found an answer to the issue in the comments. Should probably contact SL about it as it's not as straight forward as a beginner challenge should be IMO.