/******************************************* Problem - Campus Speeding Solution By - Sean Falconer *******************************************/ #include #include #include using namespace std; int main() { int C; cin >> C; for(int c = 0; c < C; c++) { cout << "Case " << c+1 << ":" << endl; int R, V, i; cin >> R; vector limits(R); for(i = 0; i < R; i++) cin >> limits[i]; cin >> V; for(i = 0; i < V; i++) { string s = "is not a speeder"; int speed; for(int j = 0; j < R; j++) { cin >> speed; if(speed > limits[j]) s = "is a speeder"; } cout << "Vehicle " << i+1 << ": " << s << endl; } } return 0; }