I made a script and it keeps saying error C2144 and fatal error C1004
#include <iostream>
using namespace std
;char name[20];
int helps
void checkOutVillage (void);
int main(void);
{
std::cout <<"Please Enter Your Name!" <<std::end1;
cin >> name;
std::cout << "You Are On A Great Quest" << name std::end1;
std::cout << "There Is A Small Village In Trouble. Should We Help Them?" <<std::end1;
std::cout<< "(enter for yes and 2 for no)" << std::end1;
cin >> help;
if help == 1
{
checkOutVillage();
}
else
{
std::cout << "You Suck!" <<name << "You Are No Fun At All!!" << std::end1;
system("pause");
}return 0;
}
void checkOutVillage(void)
{
int goblinAnswer;
std::cout << "well we go check out the village!!" <<std::end1;
std::cout << "There are crazy goblins attacking" <<std::end1;
std::cout << "You should Help!" <<std::end1;
std::cout << "(enter 1 for yes and 2 for no) " <<std::end1;
cin >> goblinAnswer;
if goblinAnswer ==1)
{
std::cout <<"We go kill all the goblins and they die...we win...WE ROCK!!!" << std::end1;
system("pause");
}
else
{
std::cout << "You Suck!!! The Goblins killed everyone and now they are coming for us!!! way to go..." <<std::end1;
system("pause")
}
}
please help me