Service

Assume C++ language standard C++17 for all of the following questions.
These questions are for self-evaluation. You need not be able to answer all of them, but at least 50%. If not, you will be better served by an introductory course on contemporary C++.

Q1. What are the sums of the elements in the containers created by the following two declarations ?

Q5. The following program is meant to echo the values given to it on the standard input, when the latest input value is greater than all previous inputs. It does not compile because of one single missing keyword. Can you detect and fix it ?

Q6. The following program tests a function which should print out its arguments separated by spaces. The function takes an arbitrary number of arguments. The aim is to print string arguments, like names, message texts etc. enclosed inside quotation marks, while printing int, double etc without any additional decoration. The program compiles and runs, but does not quite work as intended. Can you fix it ? Hint: at most one line needs to be changed.