Setting up C C++ in VS codium

As the topic suggests, I want to set up C and C++. I tried installing gdb and build essential but it gave me error.
I asked chatgpt but it says to replace sources file with 4 lines of code. I have tried many commands but didn't work.
Error it shows is -

Package gdb is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
gdbserver:i386 gdbserver

Can someone help?

Also, another question. When I type gcc --version, it gives me version of it to be 13.3. Will I get latest version of gcc through build essential? I want to use C and C++ for practice now and for development later so can anyone solve this confusion?