#include<bits/stdc++.h>

int GCD(int x, int y){
	return std::__gcd(x,y);
}

int main() { 

	std::vector<int> v{10, 2, 4, 6}; 
	
	std::cout<<"The sum of elements of v is : "<<accumulate(v.begin(), v.end(),0)<<" and GCD of all elements is : "<<accumulate(v.begin(), v.end(),0,GCD)<<std::endl;
}