//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64
#include
#include
#include
using namespace std;
int main()
{
vector v = { 3, 18, 25, 48 };
int sum = accumulate(v.cbegin(), v.cend(), 0, [](int x, int y) {
if ((y % 6 == 0) && (y % 10 == 8))
return x + y;
return x;
});
cout << sum;<br>}