Looking at the screenshot I think this project was incorrectly created or imported.
The Core/Src folders has no "purple c" decoration. Consequently compiler will not look for source code here.
What do I mean with "purple c decoration"? Look at the image below:

- Core and Drivers folders are set as source folders. They have purple c in the icon.
- All sub-folders of a source folder are also included in the build scan.
- All c-files inside a source folder tree get a different icon vs files that will not be build. Compare the icon for main.c in my screenshot vs yours.
- Debug is not a configured source folder, since it only contains the artifacts from the build process.
It appears that not a single folder in your project is treated as source folder.
Then there is nothing to build. Why did this happen?
Well the project is either not create or not imported correctly? Maybe the .cproject file is missing in the project root and the project is then not a CDT project, but only a normal Eclipse folder.
It also seem like this is an H7 dual-core project you are playing with. There should be a top-level project called only "khV3". You only seem to have the part for the CM4 and the CM7. Not the top-level one... I recommend you read the app note on H7 dual-core dev in CubeIDE to get started properly:
https://www.st.com/resource/en/application_note/an5361-getting-started-with-projects-based-on-dualcore-stm32h7-microcontrollers-in-stm32cubeide-stmicroelectronics.pdf