clang does not recognize std::cout

Step 1: Ensure you have included the necessary header file for input and output operations.

#include <iostream>

Step 2: Use the standard namespace to access the cout object without the 'std::' prefix.

using namespace std;

Step 3: Write your C++ code using the 'cout' object.

int main() {
    cout << "Hello, World!" << endl;
    return 0;
}