#include <iostream>
#include <algorithm>#include <random>#include <time.h>int main(){ srand((unsigned int)(time(0))); std::vector<int> a(10); for_each(a.begin(),a.end(),[](int& x){x = rand()%10;}); for_each(a.begin(),a.end(),[](int& x){std::cout<<x<<" ";}); return 0;}
error C2664: 'BOOL (PCERT_