Implementation of Code Coach Challenge "Cheer Creator" in C++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 31

Implementation of Code Coach Challenge "Cheer Creator" in C++

Works fine in C https://code.sololearn.com/cbeZT0baz7SH/?ref=app But not passing 2 test cases in C++ 😣 Why? https://code.sololearn.com/c9KLzpfvSz7D/?ref=app

18th Jan 2020, 7:37 AM
𝘕𝘉
𝘕𝘉 - avatar
2 Answers
+ 20
Sʀ. Sᴏғᴛᴡᴀʀᴇ Eɴɢɪɴᴇᴇʀ Thank you Sir ! It worked 😊
18th Jan 2020, 8:27 AM
𝘕𝘉
𝘕𝘉 - avatar
+ 9
You can simply write in loop like this. No need to concat cout << "Ra!"; I think this is happening because you defined size of char array 100 so maybe some special character adding in your output while concatinng. I don't know much about c++ so I maybe wrong here.
18th Jan 2020, 8:06 AM
A͢J
A͢J - avatar