#error in vscode or smth???
135 messages Β· Page 1 of 1 (latest)
When your question is answered use !solved or the button below to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
@spark hollow
Your message appears to contain screenshots but no code. Please send code and error messages in text instead of screenshots if applicable!
what help do you want ? can u explain your problem ?
uhh well i try to make a loop that can count from the a to the b
They input the same numbers but get different output
ex i give a=1 and b =5 ,so it will count 1 to 5
Is your program even being compiled? Add some error and try running it again
idk how to check it?
I literally told you how to check it in the same message
I mean just type some garbage in the code, something that doesn't compile
use chatgpt
if i can I dont need to ask at here
have you run build task?
What is that
you can delete the exe file and rerun that task again
it's the task to compile your code
you can go to "explorer" and delete the executable, run that task (default shortcut is ctrl+shift+b)
cloudflare is down lulz
Yeah its not compiling and for some reason running old exe
delete 3 this right?
just exe
nt.exe
i mean, the extension nameπ
so now after im deleted it what am i sppose to do?
!llm
@edgy vault
We highly recommend against the use of LLMs and AI assistants because:
- LLMs are bad at C and C++
- LLMs are wrong more often than not
- LLMs answer with complete confidence even when wrong
- If you're new to C or C++ you likely don't know enough to know when answers are wrong
rebuild it
Try running your code again
something wrong with your build task config?
idk bro π
hold
lemme try another
in somehow...
only this folder can run
weird, i have never met this problem
it's not that problem. because there's no problem of mine
u know, that's why i dont recommend vscode for beginners, there're always something unexpected
where's your compiler? did you add it to PATH?
if did, type this command in terminal to compile your code manually:
g++/gcc/clang++ nt.cpp -o nt.exe
choose the compiler you've installed
Here bottom right there C/C++ in red click on it
here
ok, you did, compile your code manually first
bro im not blind color there is no red button or red click like you said inC/C++
There it is i can see it
Leave it
The problem probably stems from OneDrive
Since your code is in Onedrive folder
im stupid in english π like wdym change the path?
yeah but those files aren't not used,even now ?
I dont think is the problem
Try moving project outside of onedrive
ok?
Yes
okay is clean now
No !
=)?
so smart, why did't i think of that?
I have moved it?
I didnt tell you to delete the files
Yes move it somewhere else
Yeah i moved it?
=)? What is the problem with that?
Its usually a problem
ok what now?
Open it in vscode and compile?
Whats so crazy about what I said
nvm
im not sure, but onedrive often causes some problems
open all??
the py or cpp one?
nonono, the folder where they are
i have moved the files but delete the folder=)
Set this setting to "abort" instead of "debug anyway" that you have now.
Then if the program doesn't compile, VSC won't try to debug its stale version
=) where
document
Can you show your tasks.json? You do have one right?
uhhh
In your project directory, there should be a directory called .vscode and in it this file
left is the file i can run ,right is the file i cant run
yh i have
ok i setted abort
so after set abort i have to retry run the code?
No, it won't fix the error. But at least now it won't try to run a stale version of your code, as it did in your first message
Fix the tasks.json next
Try just "command": "g++" , maybe it'll work?
because it should be "command": "g++" instead of "command": "command": "g++"
=)))
hehe
ok fixed
so what now?
switch to your source code, and run build task
dont need to save the change?
of course you need
solved
haha
Thank you and let us know if you have any more questions!
This thread is now set to auto-hide after an hour of inactivity
@spark hollow Has your question been resolved? If so, type !solved :)
!solved
π π