Code:
for(int j = 0; j<5;++j) //fill up the Winning Digits
WinningDigits[i];
"i" was not declared in the for loop scope, switch it to "j".
Code:
cout<<"DISPLAY RESULT:"<<end;
there is no "end" in the iostream lib, change it to "endl".
stick "using namespace std;" right after include<iostream>. This is the easiest way to access name space std.
Code:
cout<<=============================================<<endl;
put the "===============" in a pair of quotes.
You used rand() without seeding it first. To seed rand you will need to include "cstdlib". Also, you should read prelude's article on rand: http://eternallyconfuzzled.com/arts/jsw_art_rand.aspx .
Code:
If(Player[d]==WinningDigits[d])
...
cout<<"the number"<<player[d]<<"is correct"<<endl;
SameVal[counter] = player[d];
there is no "If" in c/c++; the "i" should be lowercase. C++ is case sensitive. So you also have a problem with "Player" and "player"
Your compiler's errors regarding these exceptions should be very straight forward to understand. Practice reading the compiler's errors to debug your code is essential in learning C++.