#include <iostream>
#include <algorithm>
#include <vector>
#include <iterator>
int main()
{
std::vector<int32_t> vocations {0, 1, 2, 3, 4}; // cant use this
int32_t vocationId = 5;
auto search = std::find(std::begin(vocations), std::end(vocations), vocationId);
if (search != std::end(vocations))
return false;
std::cout << "No error" << std::endl;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: