This also happened to me when I was given a task from my company, Rent a Car Bur Dubai, and I compiled for it. So what I can recommend is:
Ensure that the correct board, "AI Thinker ESP32-CAM," is selected in the Tools menu of your Arduino IDE.
If the board is not listed, you may need to install it through the Board Manager. Search for "ESP32" and install the latest version.
Ensure that necessary libraries like ESP32-CAM, WiFi, and HTTPClient are installed. You can install them through the Library Manager.
Carefully check your code for typos, missing semicolons, or incorrect syntax.
Verify that you're using the correct function names and parameters.
J