#include <bits/stdc++.h>
#include <stdio.h>
#include <vector>
enum class ValType : uint8_t
{
Working = 1,
Failed = 0,
Freezed = 0
};
int main()
{
std::vector<uint8_t> bravo = {23, 23, 23, 22, 5};
std::vector<ValType> call;
std::transform(bravo.cbegin(), bravo.cend(), std::back_inserter(call), [](uint8_t a)
{ return static_cast<ValType>(bravo[a]); });
return 0;
}