+ 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

14th Nov 2020, 11:39 PM
Davide
Davide - avatar
3 odpowiedzi
+ 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!";
14th Nov 2020, 11:56 PM
ChaoticDawg
ChaoticDawg - avatar
+ 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 🤗
15th Nov 2020, 12:00 AM
Davide
Davide - avatar
+ 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.
15th Nov 2020, 12:04 AM
ChaoticDawg
ChaoticDawg - avatar