Question: 2. a) Why doesn't the code compile? b) What needs to be changed on line 9 to compile the code? Line commenting 9 is not
2. a) Why doesn't the code compile? b) What needs to be changed on line 9 to compile the code? Line commenting 9 is not allowed and change must be the smallest possible! (C++)
1 #include
3 class Token {}; 4
5 int main() { 6 std::vector
9 Token* t = v.begin(); 10 11 delete t; 12 return 0; 13 }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
