+ 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
2 ответов
+ 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'';
+ 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