Fatal error: ‘stdafx.h’ file not found

  1. stdafx.h is the precompiled header used by Visual Studio, you do not need this.
  2. You seem to have missed out the int main() function
  3. It is std::endl not std::end1

So something like this:

#include <iostream>
int main() {
     std::cout << "Hello World!" << std::endl;
     return 0;
}

Leave a Comment