What is wrong in the following code?
```
#include
#include
using namespace std;
int main()
{
vector
cout << v[0];
return 0;
}
```
a. The program has a compile error on v[0].
b. The program has a compile error on vector
c. The program has a runtime error on vector
d. The program has a runtime error on v[0], because the vector is empty.
Key:d
d. The program has a runtime error on v[0], because the vector is empty.
You might also like to view...
What is the output of the following program fragment?
cout << static_cast
All reviewer's revisions and comments display in the color blue
Indicate whether the statement is true or false
If you want to apply more than one attribute to a Web page (such as a particular font), you could create a tag such asĀ ____.
A.
B. C. D.The only time it is necessary to check links to make sure they work is just before publishing your website but only when you have completed all other tasks.
Answer the following statement true (T) or false (F)