#include <string> #include <iostream> using namespace std; int main() { string colour = "black" ; cout <<" chge"; return 0;} | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

#include <string> #include <iostream> using namespace std; int main() { string colour = "black" ; cout <<" chge"; return 0;}

It's give a compilation error, how can I solve it

31st Jul 2018, 9:01 PM
Piyush Goyal
Piyush Goyal - avatar
2 Answers
+ 1
I have no errors, it compiles and works fine.
31st Jul 2018, 9:06 PM
Steppenwolf
Steppenwolf - avatar
0
Thank you
31st Jul 2018, 9:17 PM
Piyush Goyal
Piyush Goyal - avatar