#include <iostream>
#include <algorithm>
using namespace std;


int main() {
	string userinput;
	string arr[10] = {"Test1", "Test2", "Test3", "Test4", "Test5", "Test6", "Test7", "Test8", "Test9", "Test10"};
	
	
	cout << "Please enter your identity.\n"; //Identify user
    getline(cin, userinput);
    while (!std::count(arr, arr+10, userinput)) //Check to see if user is the same as the string variable "user"
    {
	    cout << "This user is either non existent or has access privileges revoked.\n"; //Wrong username!
	    cout << "Please re-enter the username.\n";
	    getline(cin, userinput);
    }
    
	cout<< "Got " << userinput << endl;
	return 0;
}