#include <iostream>
#include <map>
typedef map< int , double , less< int > > Mid ;
using namespace std ;
In this code snippet, you are using map
before telling that you are using tht e namespace std
. Therefore, your compiler does not know where to look for map
and tells you it never heard about it. Just write:
using namespace std ;
typedef map< int , double , less< int > > Mid ;
It should fix that problem.