Errors with data structures

Getting two errors. The first error is "error: use of undeclared identifier 'flights'. The second error is "error: use of invalid use of non-static data member 'flights'.
Last edited on
Looks like you might want to use the . operator instead of the = operator.

1
2
it->second.flights.push_back(fli);
          ^
Thanks Peter87. It works now!
Last edited on
Topic archived. No new replies allowed.