0

No match for operator <<

What's wrong with using << for cout? :( https://sololearn.com/compiler-playground/c67WJOIWXf54/?ref=app

19th Oct 2024, 9:07 PM
StarCodes
4 Answers
+ 1
Show us the code. The << operator should work, but we can't see what's wrong until we see your code.
19th Oct 2024, 9:27 PM
Jerry Hobby
Jerry Hobby - avatar
+ 1
The problem is with the text. You have a backslash. That needs to be escaped because itā€™s special. Check this #include <iostream> using namespace std; int main() { //circle cout << " ___" << endl; cout << "/ \\" << endl; cout << "| |" << endl; cout << "\\___/" << endl; }
20th Oct 2024, 12:47 AM
Jerry Hobby
Jerry Hobby - avatar
0
StarCodes are you using the single character Ā« instead of <<? It resembles the << left shift operator. However, it is not used as an operator in programming languages but can visually resemble the << symbol.
19th Oct 2024, 10:54 PM
Brian
Brian - avatar
0
Brian No, I usually make projects on mobile.
20th Oct 2024, 12:38 AM
StarCodes