ra*****@gmail.com wrote:
#include <utility>
#include <vector>
using namespace std;
vector< pair<int,int v;
Generates an error: ISO C++ forbids declaration of 'vector' with no
type
I'm using MinGW/Dev-C++ compiler. The file "utility" includes
"bits/stl_pair.h", which contains the class pair in the std namespace.
What's wrong?
No idea. You'll have to do some experimenting. It's not obvious from the
error message that the problem is pair. So try a few things:
pair<int, intp;
vector<intv;
If either of those fails, you've narrowed down the problem.
--
-- Pete
Author of "The Standard C++ Library Extensions: a Tutorial and
Reference." For more information about this book, see
www.petebecker.com/tr1book.