Question: Question 7 What is wrong in the following code? ` ` ` #include #include using namespace std; int main ( ) { vector v; cout
Question
What is wrong in the following code?
#include
#include
using namespace std;
int main
vector v;
cout vtheta;
return ;
The program has a compile error on mathrmv
The program has a compile error on vector v
The program has a runtime error on vector v
The program has a runtime error on v because the vector is empty.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
