CMPT 128 Midterm: CMPT 128 Midterm Fall 2009
Document Summary
Last name exactly as it appears on your student card. First name exactly as it appears on your student card. It is closed book: no calculators, computers, notes, books, etc. are allowed. }else{ cout << no; int score1 = 10; int score2 = 4; if ((score1 + score2) / 2) > 6){ cout << yes; }else{ cout << no; vector v1(5); for (int i=0; i < v1. size(); i++){ v1[i] = i * 2; cout << v1[2]; vector v2; v2. push_back(10); v2. push_back(25); cout << v2[v2. size() 1]; Page 3 of 7 int w1 = 10; int h1 = 8 int w2 = 3. 4; int 2ndh = 15; #include using namespace std; int area (int length, int height); int main() int area (int length, int height){ Identify five compilation errors in the program above by circling or numbering them. Note the error and a brief description of how you would solve it in the space provided below.