Saturday, July 26, 2008

ISO C++ forbids declaration of ‘map’ with no type

You're missing:

using namespace std;

3 comments:

Unknown said...

This error also comes when you forget to include

#include &lt map &gt

Cheers!

Unknown said...

This error also comes when you forget to include

#include <map>

Cheers!

Unknown said...

Thank you Mayank.