Do you see any errors with this code? the maximum size is 25 and List Class from the Unsorted List ADT given in class.
int main()
{
UnsortedType numlist;
int number;
for (int i = 0; i < 10; i++)
{
cin >> number;
numlist.insertItem(number);
}
numlist.MakeEmpty();
for (int i = 0; i < 10; i++)
{
numlist.deleteItem(number);
cout << number << endl;
}
return 0;
}