#include <iostream>
#include<thread>

using namespace std;

void process(int start_holder [], int size) {
    for (int t = 0; t < size; t++) {
        cout << start_holder[t] << "\n";
    }
}

int main(int argc, char *argv [])
{
    const int size = 5;
    int list[size] = { 16, 2, 77, 40, 12071 };
    std::thread run_thread(process, list, size);
    run_thread.join();
}