lotto code

i have four erros im trying to find what they are but everytime i think i correct it it says i have more errors please help

1>------ Build started: Project: sip, Configuration: Debug Win32 ------
1>Compiling...
1>sip.cpp
1>c:\documents and settings\resparza\my documents\visual studio 2008\projects\sip\sip\sip.cpp(14) : warning C4091: '' : ignored on left of 'double' when no variable is declared
1>c:\documents and settings\resparza\my documents\visual studio 2008\projects\sip\sip\sip.cpp(14) : fatal error C1075: end of file found before the left brace '{' at 'c:\documents and settings\resparza\my documents\visual studio 2008\projects\sip\sip\sip.cpp(11)' was matched
1>lotto.cpp
1>c:\documents and settings\resparza\my documents\visual studio 2008\projects\sip\sip\lotto.cpp(23) : error C2143: syntax error : missing ',' before '+'
1>c:\documents and settings\resparza\my documents\visual studio 2008\projects\sip\sip\lotto.cpp(23) : error C2143: syntax error : missing ';' before ')'
1>c:\documents and settings\resparza\my documents\visual studio 2008\projects\sip\sip\lotto.cpp(23) : error C2143: syntax error : missing ';' before ')'
1>Generating Code...
1>Build log was saved at "file://c:\Documents and Settings\resparza\My Documents\Visual Studio 2008\Projects\sip\sip\Debug\BuildLog.htm"
1>sip - 4 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========



#include <iostream>
#include <ctime>
#include <cstdlib>
#include <iomanip>

using namespace std;

int main()
{

int lottery [4], user [4];
int count=0;

for (int i=0; i<4; i++)

{
lottery [i]= 1 + rand () %9;
}

cout << "Enter four numbes:\n";


for (int i+0; i,4; i++)

cin>> user [i];

cout << " ThE luCkY NuMbErS ArE: \n";

for (int i=0; i,4; i++)

{

if( lottery [i]==user[i])

{

cout << lottery [i] << " ";

count ++;

}

}

if (count==4)

cout << " Winner!!!! of the $10000 TaX FrEe.";

cin.ignore (1000, '\n');
cin.get();

return 0;

}
Topic archived. No new replies allowed.