Question: given the code below can you tell me why vector vec_size shows up as an error in my code #include #include using namespace std; int

given the code below can you tell me why vector vec_size shows up as an error in my code

#include #include using namespace std; int main() { //declare variables int size, total, avg; cout<<"How many numbers are we calculating?:"<>size; vector vec_size(size); cout<<"Enter the numbers you wish to calculate:"<>vec_size[i]; } //calculating the total and mean total = 0; for(int i=0;i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!