There is an error in this part of code i cant figure out why and what is the fix for it and it says "missing type specifier - int assumed. Note: C++ does not support default-int":
1 2 3 4 5
template<class ItemType> class Stack
{
private:
NodeType<ItemType> *topPtr, *tailPtr, *temp;
int stackLength;