Someone please help with my c++ code (I am beginner :()
So this is my code #include <iostream> int main() { //start std::cout << "Welcome to the volume calculator for rectangles and squares!\n\n\n"; int height; std::cout << "Inter Height: "; std::cin >> height; std::cout << "\n"; int width; std::cout << "Inter Width: "; std::cin >> width; std::cout << "\n"; int length; std::cout << "Inter Length: "; std::cin >> length; std::cout << "\n"; int volume = width * height * length; std::cout << "The volume is: " << volume; return 0; } Whenever I try to run it,it just shows: Undefined symbols for architecture x86_64: "_main", referenced from: implicit entry/start for main executable ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation I am so confused. UPDATE: Thank you everyone for your answers. It turns out there was a problem with my IDE but now it is fixed.