#error in vscode or smth???

135 messages Β· Page 1 of 1 (latest)

spark hollow
thorn pierBOT
#

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

Screenshots!

Your message appears to contain screenshots but no code. Please send code and error messages in text instead of screenshots if applicable!

tame tiger
spark hollow
orchid hornet
spark hollow
#

ex i give a=1 and b =5 ,so it will count 1 to 5

orchid hornet
#

Is your program even being compiled? Add some error and try running it again

orchid hornet
#

I literally told you how to check it in the same message

spark hollow
#

πŸ™‚

#

how add some error =)?

#

Im not expert =)))

orchid hornet
#

I mean just type some garbage in the code, something that doesn't compile

edgy vault
#

use chatgpt

spark hollow
#

there you go

spark hollow
crystal warren
#

have you run build task?

spark hollow
crystal warren
#

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)

glossy meteor
sullen condor
# spark hollow

Yeah its not compiling and for some reason running old exe

crystal warren
spark hollow
#

hold

crystal warren
spark hollow
#

holdf

#

im blind sry

crystal warren
spark hollow
orchid hornet
thorn pierBOT
# orchid hornet !llm

@edgy vault

Large Language Models (LLMs)

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
crystal warren
orchid hornet
spark hollow
#

ok

#

=))

#

sokekw πŸ‘‰ πŸ‘ˆ

crystal warren
spark hollow
#

hold

#

lemme try another

#

in somehow...

#

only this folder can run

crystal warren
spark hollow
#

Like only the cpp can run the code ,but the c++ can't run=)?

#

weird

crystal warren
#

it's not that problem. because there's no problem of mine

spark hollow
#

@orchid hornet πŸ™‚ Help pls=)?

#

I'm dying=)

crystal warren
#

u know, that's why i dont recommend vscode for beginners, there're always something unexpected

spark hollow
#

=))

#

well

#

I think is vs studio time=)?

crystal warren
#

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

sullen condor
spark hollow
crystal warren
spark hollow
sullen condor
#

Leave it

#

The problem probably stems from OneDrive

#

Since your code is in Onedrive folder

spark hollow
spark hollow
#

I dont think is the problem

sullen condor
spark hollow
#

ok?

sullen condor
#

Yes

spark hollow
#

okay is clean now

sullen condor
#

No !

spark hollow
#

=)?

crystal warren
spark hollow
#

I have moved it?

sullen condor
#

I didnt tell you to delete the files

sullen condor
spark hollow
#

Yeah i moved it?

spark hollow
sullen condor
spark hollow
#

ok what now?

sullen condor
#

Whats so crazy about what I said

spark hollow
#

nvm

crystal warren
spark hollow
#

open all??

crystal warren
#

open with code as a workspace

spark hollow
#

the py or cpp one?

crystal warren
#

nonono, the folder where they are

spark hollow
#

i have moved the files but delete the folder=)

orchid hornet
#

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

sullen condor
#

=) where

spark hollow
#

document

orchid hornet
#

Can you show your tasks.json? You do have one right?

spark hollow
#

uhhh

orchid hornet
#

In your project directory, there should be a directory called .vscode and in it this file

spark hollow
#

left is the file i can run ,right is the file i cant run

orchid hornet
#

This should point to your compiler, but right now makes no sense

spark hollow
#

ok i setted abort

spark hollow
orchid hornet
#

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?

spark hollow
#

error

crystal warren
# spark hollow

because it should be "command": "g++" instead of "command": "command": "g++"

crystal warren
#

switch to your source code, and run build task

spark hollow
#

dont need to save the change?

crystal warren
spark hollow
#

=))))

#

OMGGGGGGGGGGGGGGGGGG

#

It's f worked

crystal warren
#

solved

spark hollow
#

I will drink some beer for this

#

YEAHHHHHHHHHHHHHHHHH

crystal warren
#

haha

spark hollow
#

THANKS GUYS @crystal warren @orchid hornet @sullen condor

#

BEER TIME

thorn pierBOT
#

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 :)

spark hollow
#

!solved