"cout" not working in another compiler | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

"cout" not working in another compiler

I tried writing a program on another compiler and I got an errors message. That the cout was an invalid syntax. Why? Instead printf(), was used in their sample. The compiler is cxxdroid

25th Jan 2022, 9:31 AM
Elechi Allwell Chimekwa
Elechi Allwell Chimekwa - avatar
3 Answers
+ 6
Go to settings->System->Turn on "Use C++ for unsaved files", your problem should be solved Also, don't forget to include the corresponding header
25th Jan 2022, 9:34 AM
Rishi
Rishi - avatar
+ 3
Thanks you so much
25th Jan 2022, 9:37 AM
Elechi Allwell Chimekwa
Elechi Allwell Chimekwa - avatar
+ 1
No problem :)
25th Jan 2022, 9:59 AM
Rishi
Rishi - avatar