+ 1

I'm getting an error in output "exited with code=1" in VS Code. How to resolve this error?

I have written a neat code of Hello World program in VS code but when I click on run, it shows an error exited with code -1 in output. Is there anyway to resolve that issue? https://code.sololearn.com/csqTClXrk9du/?ref=app

16th Nov 2020, 3:48 PM
Dynamite Hacker
Dynamite Hacker - avatar
2 Answers
+ 3
In line 6 you ended with >> wich is not used with cout (it is â€čâ€č) On the same line you missed the semicolon ( ; ) wich should conclude each instruction in your program. So to fix this you should write something like: coutâ€čâ€č''Hello word'';
16th Nov 2020, 4:57 PM
fire ball
fire ball - avatar
+ 1
You can start by saving the code in SoloLearn and sharing the saved code link for an inspection ... https://www.sololearn.com/post/75089/?ref=app
16th Nov 2020, 3:53 PM
Ipang