1

I am trying to use the std::map but it fails every time I try to build. I have included these strange errors I am getting and hopefully you can tell where I went wrong. Using the visual studio default header.

Code:

#include <map>
#include <set>
#include <string>
#include "pch.h"
#include <iostream>
#include <utility>

int main()
{
    std::map < int, int > x = {};
    std::cout << "Hello World!\n";
    return 0;
}

Header:

#ifndef PCH_H
#define PCH_H

// TODO: add headers that you want to pre-compile here

#endif //PCH_H

Errors

mrVentures
  • 121
  • 1
  • 8

0 Answers0