//HashTable struct
struct HashTable {
Condition elements [MAX_ELEMENTS];
int sizeTable;
};
//Condition struct
struct Condition {
string conditionName;
int priority;
};
//Hash Table initialization
HashTable * initHT (int sizeTable) {
// write code to create a new hash table with the given size, initialize the hash table, and return the address of the hash table created.
HashTable *ht= new HashTable;
int i;
for (i=0; i<sizeTable; i++) {
ht->elements[i]=NULL; //error: no match for operator=
}
ht->sizeTable = sizeTable;
return ht;
}