Code: Select all
ground_factories = new list<int>[numOfSides];
sea_factories = new list<int>[numOfSides];
ground_defenses = new list<int>[numOfSides];
I looked up in the internet and found nothing related to this

Code: Select all
list<list<int>> *all_lists;
all_lists = new list<list<int>>;
all_lists.push_back(ground_factories);
Code: Select all
.\UnitTable.cpp(37) : error C2228: left of '.push_back' must have class/struct/union
type is 'std::list<_Ty> *'
with
[
_Ty=std::list<int>
]
did you intend to use '->' instead?