Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <algorithm>
- #include <iostream>
- #include <vector>
- using namespace std;
- void PrintWorryCount(const vector<bool>& is_nervous) {
- cout << count(is_nervous.begin(), is_nervous.end(), true) << endl;
- }
- int main() {
- // не меняйте содержимое функции main
- PrintWorryCount({true, true, false, true});
- return 0;
- }
Add Comment
Please, Sign In to add comment