I have the following code:
struct Node { int a; int b; }; Node node; node.a = 2; node.b = 3; map aa; aa[1]=1; // OK. map
Could you please post the compiler error - They're intended to tell you, what's wrong.
I guess your error occurs since Node doesn't implement a comparison operator which is required by the map in order to identify it's elements.
Node