#include
#include
#include
using namespace std;
const size_t N = 10;
int main()
{
size_t sum = 0;
array a = { 1, 5, 9, 6, 3, 0, 1, 4, -2, 15 };
cout << "Count: ";<br> cout << accumulate(a.cbegin(), a.cend(), 0, [&sum](size_t count, const int<br>num) {
if ( !(num % 3) && num % 5 ) {
++count;
sum += num;
}
return count;
});
cout << " Sum: " << sum << endl;<br>}