#include #include #include using namespace std; double Norm(const vector& x) { double s = 0; for (vector::const_iterator c = x.begin(); c != x.end(); ++c) s += (*c)*(*c); return sqrt(s); } int main() { vector a{5, 1}; cout << "Norm(a) = " << Norm(a) << endl; return 0; }