what am i doing wrong

useing bloodshed dev c++
i enter in the code verbatum from my instructor but i keep getting errors
5 C:\Dev-Cpp\1.cpp expected constructor, destructor, or type conversion before "namespace"
5 C:\Dev-Cpp\1.cpp expected `,' or `;' before "namespace"
7 C:\Dev-Cpp\1.cpp expected constructor, destructor, or type conversion before "int" for example
here is my code

#include <iostream>


useing namespace std;

main int(int, int, int)
{
int number [5];
int value;
int temp;
}
for (int i=0; i<5; ++)
{
cin>> value>>;
number [i]= value;
}

for (int i=0; i<5; ++)
{
for (int i=0; i<4; i++)
if (number [i]> nmuber [j+1]
{
temp=number [j]
number [i]= number [j+1]
number [j+1]= temp
}
}
}
cout<<end1;
for (int i=0; i<5; ++)
cout<< number [1]<< end1;

system("pause");
return Exit_sucsess
If that is code your instructor gave you, you have a bad instructor.
http://cplusplus.com/doc/tutorial/program_structure/
i enter in the code verbatum from my instructor

Haha, no, you're not (unless your instructor is about to pass out from alcohol poisoning).
There's an error in almost every line. Mind your spelling.

main int(int, int, int)
Good one! That strange construct should've been int main()
Topic archived. No new replies allowed.