Marina(){ //std::fill is in <algorithm> std::fill (port, port + 100, 0); std::fill (bport, bport + 25, 0);
This piece of code is missing. There is no trailing brace! I replaced your tasks with one that will work as long as there is a bracket.
In addition, your code will still not compile this way, since initialization must be done in the list of initializers:
Marina() : port ({0}), bport ({0}) {}
chris source share