I write a code in vs cod compiler, my code is right bt output comes error why? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 3

I write a code in vs cod compiler, my code is right bt output comes error why?

I'm bca first year student , i dont know more about that

21st Mar 2021, 2:07 AM
Yogesh Rajput
Yogesh Rajput - avatar
18 Answers
+ 3
what the error says?
21st Mar 2021, 2:27 AM
durian
durian - avatar
+ 3
Martin Taylor Respect for being so patient. He did state that the hello world program runs, but it‘s really hard to tell from the waay he writes. Yogesh Rajput did you install a compiler. Is a hello world program (or Martin Taylors test program) really running successfully?
21st Mar 2021, 2:48 AM
John Doe
+ 3
made your code from playground run. not sure if you meant it. as Martin taylor said, it had illegal white space characters https://code.sololearn.com/cdiErAhjmPIu/?ref=app
21st Mar 2021, 3:12 AM
John Doe
+ 2
Install an extension in VS code "code runner"
21st Mar 2021, 5:27 AM
Anmol Pal
Anmol Pal - avatar
+ 1
Language not defined or probability something, Actually hello world code is run, but if i started to any numerical code like add, sub, while loop, for loop then got error
21st Mar 2021, 2:15 AM
Yogesh Rajput
Yogesh Rajput - avatar
+ 1
What is terminal? When program run their error has come in terminal panel, not in code panel
21st Mar 2021, 2:30 AM
Yogesh Rajput
Yogesh Rajput - avatar
+ 1
Yogesh Rajput as already told by other people here, your code along with error message generated by the compiler is required in order to understand what is the problem. Provide them in your question description here. 1) for code snippets, you can use code playground to copy paste the entire program and share the saved link here. 2) otherwise if you are using app then you can also create a post containing the pic of the code and error it is generating 3) if you are for some reason not able to do either then just copy pasting the error message will also help solving your problem.
21st Mar 2021, 2:50 AM
Arsenic
Arsenic - avatar
0
Can i share my screen with you
21st Mar 2021, 2:19 AM
Yogesh Rajput
Yogesh Rajput - avatar
0
I use vs code compiler
21st Mar 2021, 2:22 AM
Yogesh Rajput
Yogesh Rajput - avatar
0
Doesn't run in only vs code, any other places it run successfully
21st Mar 2021, 2:28 AM
Yogesh Rajput
Yogesh Rajput - avatar
0
John Doe yes did
21st Mar 2021, 2:51 AM
Yogesh Rajput
Yogesh Rajput - avatar
0
Arsenic thanks i do as says
21st Mar 2021, 2:54 AM
Yogesh Rajput
Yogesh Rajput - avatar
0
Anmol Pal it's already installed
21st Mar 2021, 1:07 PM
Yogesh Rajput
Yogesh Rajput - avatar
0
what c compiler did u use?clang/gcc/etc..
22nd Mar 2021, 12:08 AM
durian
durian - avatar
0
Lily Mea code runner
22nd Mar 2021, 2:45 AM
Yogesh Rajput
Yogesh Rajput - avatar
0
Yogesh Rajput I already gave an answer in the comments of your code "Binary No": You copied the code from another editor, right? Doing that, you also copied all the invisible characters that are shown in the other editor. They cannot be seen here, but trigger an error on the SoloLearn Playground ... Just replace all your blanks with regular 'Space' blanks and it will run without error!!! Don't forget to also replace the blanks from the blank new lines!
22nd Mar 2021, 6:48 PM
Crash
Crash - avatar
- 1
I'm new so i don't much about it, now exams are come pass, and colleges are closed so no any source to solve a problem youtube is help sometimes
21st Mar 2021, 2:21 AM
Yogesh Rajput
Yogesh Rajput - avatar