#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
vector<int> v = { 1, 2, 3, 45, 24, 10, 20, -90, 100, 18, 17, 15, 87 };
cout << count_if(v.cbegin(), v.cend(), [](int i) { return i >= 10 && i <= 20;});
}
//https://pt.stackoverflow.com/q/104151/101
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgojaW5jbHVkZSA8YWxnb3JpdGhtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgICB2ZWN0b3I8aW50PiB2ID0geyAxLCAyLCAzLCA0NSwgMjQsIDEwLCAyMCwgLTkwLCAxMDAsIDE4LCAxNywgMTUsIDg3IH07CiAgICBjb3V0IDw8IGNvdW50X2lmKHYuY2JlZ2luKCksIHYuY2VuZCgpLCBbXShpbnQgaSkgeyByZXR1cm4gaSA+PSAxMCAmJiBpIDw9IDIwO30pOwp9CgovL2h0dHBzOi8vcHQuc3RhY2tvdmVyZmxvdy5jb20vcS8xMDQxNTEvMTAx