#include #include #include using namespace std; int main() { vector v = {5, 7, 9, 4, 6, 8}; for(unsigned int i = 0; i < v.size(); i++) { cout << "i=" << v[i] << "\n"; } vector temps; double temp; do { cin >> temp; temps.push_back(temp); } while(temp != 0); for(int x : temps) { cout << "TEMP " << x << "\n"; } ranges::sort(temps); cout << "Median is" << temps[temps.size() / 2] << "\n"; // try a runtime error cout << "BANG" << temps[1000]; return 0; }