[Solved]Following Statements Clearly Indicate Provided Space Compile Error B Memory Error E Run Ti Q37231376
For the following statements, clearly indicate in theprovided space if A) there is a compile error, B) has memory error(i.e. run time error or memory leak), or C) no error. You have toexplain why if there is a compile error or run time error. If thereis no error, write the output of the code. You can assume that thecodes are in main unless indicated otherwise, and the compilerfollows c++11 standard. No other flags will be used to compile thecode. All necessary directives such as iostream are included andnamespace std is used.
//Assume templated BST and BSTIterator are all implementedproperly and included properly.
int main() {
BST<int> myBST;
myBST.insert(4);
myBST.insert(6);
myBST.insert(0);
BSTIterator<int> it = myBST.begin();
BSTIterator<int> it_end = myBST.end();
while (*it != 0) {
std::cout << *it << std::endl;
it++; }
}
Expert Answer
Answer to For the following statements, clearly indicate in the provided space if A) there is a compile error, B) has memory erro… . . .
OR

