Absolutely runnable C++ game code for eliminating harm for the people

#include <iostream>//Zero error version for the people
#include <time.h>
#include <windows.h>
using namespace std;
int hh = 0;
long long jx = 15 , fx = 8, hpx = 30 , jy = 0, gold = 0 , lv = 1 , a , b ,lvd,yyi,yer,ysan,ysi,hhx,dhhx;
int jn = 0 , zt = 0 , dzt = 0 , ztx , dztx ;
string cinmmz , cinboss;
long long j = jx , f = fx, hp = hpx;
bool dhpx = false, kg = false;;
string name;
bool z1,z2,z3,z4,z5,z6,z7;
int renwuyi,renwuer,renwusan,renwusi;
int slowout(string p) {
    int shuchu=0;
    while(shuchu!=p. size()) {
        cout<<p[shuchu];
        shuchu++;
        Sleep(70);
    }
}
int so(char *o) {
    while(1) {
        if(*o!=0)
            printf("%c",*o ++ );
        else
            break;
        Sleep(10);
    }
}
void wap(int dg, int df, int dhp, string boss, int jyx, int goldx) {
    Sleep(900);
    slowout("\\
Do you attack/escape? (1/2)");
    cin >> ysi;
    zt = 0;
    dzt = 0;
    while(hp > 0 & amp; & amp; dhp > 0 & amp; & amp; ysi == 1) {
        j = jx;
        f = fx;
        if(jn >= 1 & amp; & amp; ysi == 1) {
            system("cls");
            cout << "\\
You have used---Dragon is in the sky!";
            system("pause");
            j + = 20000;
            f + = 10000;
        }
        dztx = 0;
        ztx = 0;
        system("cls");
        dhpx = false;
        cout << boss;
        printf("remaining HP%d\\
",dhp);
        Sleep(800);
        cout << name;
        printf("remaining HP%d\\
",hp);
        Sleep(800);
        srand(time(0));
        ztx = rand() % 3 + 1;
        if(ztx != 1)zt + + ;
        if(zt == 1) {
            cout << name << "Healed up a little, and the status increased by one level!\\
";
            j + = 2;
        }
        if(zt == 2) {
            cout << name << "The fighting spirit has been ignited, and the state has increased by two levels!\\
";
            j + = 3;
        }
        if(zt == 3) {
            if(hhx > 1) {
                srand(time(0));
                ztx = rand()%3 + 1;
                if(ztx == 1) {
                    cout << name << "It's back to normal, and the status is increased by zero!\\
";
                    j = jx;
                    hhx = 0;
                }
            } else {
                cout << name << "Enter the runaway state, full firepower!!!\\
";
                j + = 4;
                hhx++;
            }
        }
        cout << name << "Attack to " << boss << "Attack!\\
";
        if(j>=df) {
            dhp -= j - df;
            cout<<boss;
            printf("Deducted %d blood\\
",j-df);
        } else {
            dhp-=0;
            cout<<boss;
            printf("Deducted 0 drops of blood");
        }

        if(dhp <= 0) {
            printf("You defeated");
            cout << boss;
            printf("!\\
");
            if(boss=="Little Golden Retriever" & amp; & amp;renwuyi==1) {
                cout<<"You have completed task one\\
and obtained one hundred gold coins\\
";
                gold + =100;
                renwuyi=0;
            }
            if(boss=="Teacup Dog" & amp; & amp;renwuer==1) {
                cout<<"You have completed task 2\\
and obtained one hundred gold coins\\
";
                gold + =100;
                renwuer=0;
            }
            if(boss=="Little Golden Retriever" & amp; & amp;renwusan==1) {
                cout<<"You have completed task three\\
and obtained three hundred gold coins\\
";
                gold + =300;
                renwusan=0;
            }
            if(boss=="Thanos" & amp; & amp;renwusi==1) {
                cout<<"You have completed task four\\
Get the solution to the plug-in side effects!!!";
                kg=false;
                renwusi=0;
            }
            jy + = jyx;
            gold + = goldx;
            dhpx = true;
            system("pause");
        } else {
            srand(time(0));
            dztx = rand() % 3 + 1;
            if(dztx != 1)dzt + + ;
            if(dzt == 1) {
                cout << boss << "I feel refreshed and my status increases by one level!\\
";
                dg + = 2;
            }
            if(dzt == 2) {
                cout << boss << "The fighting spirit is ignited, and the status is increased by two levels!\\
";
                dg + = 3;
            }
            if(dzt == 3) {
                if(dhhx > 1) {
                    srand(time(0));
                    dztx = rand()%3 + 1;
                    if(dztx == 1) {
                        cout << boss << "Returned to normal, status increased by zero!\\
";
                        dg = jx;
                        dhhx = 0;
                    }
                } else {
                    cout << boss << "Enter rampage, full firepower!!!\\
";
                    dg + = 4;
                    dhhx++;
                }
            }
            cout << boss;
            printf("To you");
            cout << name << "Come on!\\
";
            hp -= dg - f;
            cout << "your" << name;
            printf("Deducted %d blood\\
",dg-f);
            system("pause");
            if(hp <= 0) {
                slowout("cool...\\
");
                hp = hpx;
                system("pause");
                return;
            }
        }
    }
}
void gameover() {
    slowout("You defeated the werewolf and became the hero of the dog country.");
    slowout("Your deeds have also become a legend...\\
");
}
void senlinchuanshuo() {
    system("cls");
    system("color 79");
    cout<<"What do you want to check?\\
";
chakangushi:
    cout<<"1.Teacup Dog 2.Little Golden Retriever 3.Big Golden Retriever 4.Tibetan Mastiff 5.Tiger 6.Baby Elephant\\
7.Elephant 8.Tyrannosaurus Rex 9.Thanos 0.Exit\\
";
    int shuru, huida;
    cin>>shuru;
    switch(shuru) {
        case 1:
            slowout("Teacup Dog, as the name suggests, is made of teacups, so its body is extremely fragile and suitable for novices to practice\\
");
            cout<<"Task:\\
The teacup dog's cup was snatched away by a playful little golden retriever. Can you help it get it back?\\
Reward: 100 gold coins\\
";
            if(renwuyi==0) {
                huida=MessageBox(NULL,"Whether to accept the task","Prompt",MB_YESNO);
                if(huida==IDYES) {
                    cout<<"You have accepted the task!!!\\
";
                    renwuyi=1;
                }
                system("pause");
                system("cls");
                goto chakangushi;
            }

        case 2:
            slowout("The little golden retriever is the naughtiest one in the forest. I heard that he was cursed to be only four years old because he played a trick on Thanos. His father, the golden retriever, was also cursed to be only thirty years old forever. No one knows. How old are they.\\
");
            cout<<"Task:\\
The little golden retriever needs a teacup to drink from. Can you help him borrow a teacup from the teacup dog?\\
Reward: 200 gold coins\\
";
            if(renwuer==0) {
                huida=MessageBox(NULL,"Whether to accept the task","Prompt",MB_YESNO);
                if(huida==IDYES) {
                    cout<<"You have accepted the task!!!\\
";
                    renwuer=1;
                }
                system("pause");
                system("cls");
                goto chakangushi;
            }
        case 3:
            slowout("The big golden retriever is a dedicated father who protects his child, the little golden retriever, all the time. As for his mother...well, the little elephant seems to have seen it.\\
");
            cout<<"Task:\\
The little Golden Retriever ran away for fun again, can you help the Big Golden Retriever catch it back?\\
Reward: 300 gold coins\\
";
            if(renwusan==0) {
                huida=MessageBox(NULL,"Whether to accept the task","Prompt",MB_YESNO);
                if(huida==IDYES) {
                    cout<<"You have accepted the task!!!\\
";
                    renwusan=1;
                }
                system("pause");
                system("cls");
                goto chakangushi;
            }
        case 4:
            slowout("Tibetan Mastiff, legend has it that it is the mount of the Dala Lama of Tibet. One time, he ran into the Silly Dog Forest for fun and was adopted as a mount by Thanos\\
");
            /*cout<<"Task:\\
\\
Reward: Gold Coin 300\\
";
            if(renwusan==0)
            {
            huida=MessageBox(NULL,"Whether to accept the task","Prompt",MB_YESNO);
            if(huida==IDYES)
            {
            cout<<"You have accepted the task!!!\\
";
            renwusan=1;
            }*/
            system("pause");
            system("cls");
            goto chakangushi;
        case 5:
            slowout("The tiger is the most arrogant animal in this forest. He, the elephant and the Tyrannosaurus rex formed an anti-Thanos alliance\\
");
            /*cout<<"Task:\\
\\
Reward: Gold Coin 300\\
";
            if(renwusan==0)
            {
            huida=MessageBox(NULL,"Whether to accept the task","Prompt",MB_YESNO);
            if(huida==IDYES)
            {
            cout<<"You have accepted the task!!!\\
";
            renwusan=1;
            }*/
            system("pause");
            system("cls");
            goto chakangushi;
        case 6:
            slowout("The baby elephant is the youngest one in this forest, about 300 years old. He was captured by Thanos a few days ago and hidden deep in the forest. Almost no one can see him\\
\ ");
            /*cout<<"Task:\\
\\
Reward: Gold Coin 300\\
";
            if(renwusan==0)
            {
            huida=MessageBox(NULL,"Whether to accept the task","Prompt",MB_YESNO);
            if(huida==IDYES)
            {
            cout<<"You have accepted the task!!!\\
";
            renwusan=1;
            }*/
            system("pause");
            system("cls");
            goto chakangushi;
        case 7:
            slowout("Elephant, the president of the anti-Thanos alliance. Because the baby elephant was captured by Thanos, he formed an anti-Thanos alliance to avenge his son!\\
");
            cout<<"Mission: The elephant wants to destroy Thanos, but is not strong enough, can you help him!\\
\\
Reward: Eliminate the side effects of the plug-in!!!\\
";
            if(renwusan==0) {
                huida=MessageBox(NULL,"Whether to accept the task","Prompt",MB_YESNO);
                if(huida==IDYES) {
                    cout<<"You have accepted the task!!!\\
";
                    renwusi=1;
                }
                system("pause");
                system("cls");
                goto chakangushi;
            case 8:
                slowout("Tyrannosaurus rex was once the overlord of this forest, but when Thanos came, he was pushed off the throne, so he joined the alliance\\
");
                /*cout<<"Task:\\
\\
Reward: Gold Coin 300\\
";
                if(renwusan==0)
                {
                huida=MessageBox(NULL,"Whether to accept the task","Prompt",MB_YESNO);
                if(huida==IDYES)
                {
                cout<<"You have accepted the task!!!\\
";
                renwusan=1;
                }*/
                system("pause");
                system("cls");
                goto chakangushi;
            case 9:
                slowout("Thanos, after killing half of the life in the universe, he came to this last garden and lived a relatively quiet pastoral life\\
");
                /*cout<<"Task:\\
\\
Reward: Gold Coin 300\\
";
                if(renwusan==0)
                {
                huida=MessageBox(NULL,"Do you want to accept the task","Prompt",MB_YESNO);
                if(huida==IDYES)
                {
                cout<<"You have accepted the task!!!\\
";
                renwusan=1;
                }*/
                system("pause");
                system("cls");
                goto chakangushi;
            case 0:
                return;
            default:
                MessageBox(NULL,"Please enter as prompted","Prompt",MB_OK);

            }
    }
}
int main() {
    system("color 07");

shurumokuai:
    int huida=MessageBox(NULL,"Please do not try to enter any garbled characters, otherwise the game will crash!","Prompt",MB_YESNO);
    if(huida==IDYES)
        MessageBox(NULL,"Thank you for your cooperation!","Prompt",MB_OK);
    else
        goto shurumokuai;
    cout<<"\\
\\
\\
\\
\\
\\
\\
------------------------ ----------Destroying harm for the people--------------------------------\\
\ \
\\
\\
\\
\\
\\
";
    for(int i = 1; i <= 10; i ++ ) {
        system("color 4F");
        system("color 5B");
        system("color 6C");
        system("color 3D");
        system("color 66");
    }
    slowout("Liuyang Art School 1802 produced by Zhang Haotian\\
\\
\\
\\
");
    system("cls");
xuanzemokuai:
    slowout("You are walking and saw a stray dog, do you want to pick it up?\\
");
    huida=MessageBox(NULL,"Whether to pick up","Please choose",MB_YESNO);
    if(huida==IDYES)
        MessageBox(NULL,"You are a kind person!","Prompt",MB_OK);
    else {
        slowout("You didn't pick it up, but walked aside...\\
");
        goto xuanzemokuai;
    }
    slowout("Give it a name:");
    getline(cin,name);
    if(hh != 0)goto a;
    else if(hh==0) {
        cout<<"The game has started!";
        Sleep(2000);
        system("color 8F");
        system("cls");
        slowout("There is a criminal who killed countless people in the dog country-the werewolf\\
");
        slowout("It is said that he kills people without blinking an eye, and loves collecting blood\\
");
        slowout("Knowing this, you decide to eliminate harm for the people!!!\\
");
        system("pause");
        system("cls");
        cout<<"Prompt:\\
";
        if(lv == 1)slowout("Attack teacup dogs and little golden retrievers in the forest before you reach level 3, don't attack others!\\
");
        if(hp < 10000)slowout("Don't attack Tyrannosaurus Rex!\\
");
        if(hp < 40000)slowout("You can't beat Thanos!\\
");
        slowout("Werewolves live in the evil castle\\
");
        system("pause");
        goto a;
    }
a3:
    cout<<"You want";
    cout<<"Change it to what name?\\
";
    cin >> name;
    slowout("Name changed successfully!");
r:
    hh + + ;
    system("cls");
    system("cls");
    cout << "\\
Skill Damage:" << j << "\\
Defense:" << f << "\\
Maximum HP:" << hp << " \\
Level:" << lv << " Still worse" << lv * 50 - jy << "Experience upgrade" << "\\
¥:" << gold << endl ;
    system("pause");
a:
    system("color 07");
    hh + + ;
    int i;
    for(i = 0; lv * 50 - jy <= 0; i + + ) {
        lv + = 1;
        jx + = lv * 8;
        hpx + = lv * 10;
        fx + = lv * 6;
        gold + = lv * 15;
        jy -= lv * 50;
    }
    if(i > 0) {
        cout<<"You have been promoted";
        cout << i;
        cout<<"Level!";
        sleep(500);
    }
    j = jx;
    f = fx;
    hp = hpx;
    system("cls");
    cout<<"What are you going to do?\\
";
    cout<<"1. Go to the forest (proving ground) 2. Go to the store 3. Check the attributes 4. Rename\\
5. Practice the magical skills of opening and hanging 6. Go to the evil castle 7. Check the tips 8. Check the forest legend (tasks and properties)";
    int a=0;
    cin >> a;
    if(a == 1) goto b;
    else if(a == 2) goto c;
    else if(a == 3) goto r;
    else if(a == 4) goto a3;
    else if(a == 5) {
        if(kg == true) {
            slowout("You have practiced cheating skills!\\
");
            goto a;
        }
        slowout("Practice privileges:\\
");
        cout << "1.High damage\\
";
        cout << "2. High blood volume\\
";
        cout << "3.High defense\\
";
        cout << "4. Too many gold coins\\
";
        cout << "5. Acquire skills--Dragon in the sky!\\
";
        cout<<"Please note: repairing the plug-in will have the side effect of being unable to defeat the final BOSS, unless you complete the alliance task to get a solution!!!";
        system("pause");
        slowout("Please enter password:");
        cin >> cinmmz;
        if(cinmmz == "Reject plug-ins") {
            hpx = 20000;
            gold = 1000000;
            hp = hpx;
            jx + = 5000;
            fx + = 4000;
            j = jx;
            f = fx;
            jy + = 15000;
            kg = true;
            jn + + ;
            for(int i = 1; i <= 10; i + + ) {
                system("color 18");
                system("color 29");
                system("color 31");
                system("color 42");
                system("color 53");
                system("color 64");
                system("color 7B");
                system("color 9E");
            }
            slowout("Practice successfully!\\
");
            system("pause");
            goto a;
        } else {
            slowout("Error!");
            goto a;
        }
    } else if(a == 6)goto BOSS;
    else if(a == 7) {
        if(lv == 1)slowout("Attack teacup dogs, little golden retrievers and little elephants in the forest, don't attack others!\\
");
        if(kg == true)slowout("Don't think that everyone can beat it if you hang up!\\
");
        if(hp < 10000)slowout("Don't attack Tyrannosaurus Rex!\\
");
        if(hp < 40000)slowout("You can't beat Thanos!\\
");
        system("pause");
        goto a;
    } else if(a==8) {
        senlinchuanshuo();
        goto a;
    } else if(a != 1 & amp; & amp; a != 2 & amp; & amp; a != 3 & amp; & amp; a != 4 & amp; & amp; a != 5 & amp ; & amp; a != 6 & amp; & amp; a != 7 & amp; & amp;a!=8 )
        goto x;
b:
    int pp;
    srand((unsigned)time(NULL));
    if(j>=150)
        pp=5 + rand() ;
    else if(j<=150)
        pp = 1 + rand()%5;
    if(pp == 1) {
        cout << "You met a teacup dog! (Danger level: 0)";
        wap(10,5,20,"Teacup Dog",100,20);
        goto a;
    }
    if(pp == 2) {
        cout << "You met a little golden retriever! (Danger level: 0.5)";
        wap(20,15,40,"Little Golden Retriever",150,35);
        goto a;
    }
    if(pp == 3) {
        cout << "You encountered a big golden retriever! (Danger: Level 1)";
        wap(40,20,100,"Big Golden Retriever",350,80);
        goto a;
    }
    if(pp == 4) {
        cout << "You encountered a Tibetan Mastiff! (Danger: Level 2)";
        wap(70,50,250,"Tibetan Mastiff",700,100);
        goto a;
    }
    if(pp == 5) {
        cout << "You encountered a tiger! (Danger level: Level 3!)";
        wap(150,200,500,"Tiger",1000,120);
        goto a;
    }
    if(pp > 5 & amp; & amp; pp < 10) {
        cout << "You encountered a baby elephant! (Danger level: 2.5)";
        wap(160,180,25,"Little Elephant",1500,150);
        goto a;
    }
    if(pp == 10) {
        cout << "You encountered an elephant! (Danger level: Level 4!!)";
        wap(200,190,1000,"elephant",2000,200);
        goto a;
    }
    if(pp == 11) {
        cout << "You encountered a Tyrannosaurus Rex! (Danger Level: Level 6!!!)";
        wap(2000,2000,10000,"Tyrannosaurus Rex",3000,300);
        goto a;
    }
    if(pp == 12) {
        if(kg==true) {
            cout << "You encountered a Thanos! (Danger: Unmeasurable!!!!!!!!!)";
            wap(20000,15000,60000,"Thanos",40000,900000);
        } else if(kg==false) {
            cout << "You encountered a Thanos! (Danger: Unmeasurable!!!!!!!!!)";
            wap(10000,15000,40000,"Thanos",4000,900);
        }
        goto a;
    }
c:
    system("cls");
    Sleep(800);
    slowout("What do you want to buy?\\
");
    cout <<"1. Wooden Sword (Attack + 4) 20¥\\
\\
2. Stone Sword (Attack + 5) 30¥\\
\\
3. Iron Sword (Attack + 6) 40¥\ n\\
4. Golden Sword (Attack + 4) 50¥\\
\\
5. Diamond Sword (Attack + 7) 60¥\\
\\
6. Skills --- Flying Dragon in the Sky 150¥ \\
\ \
7.40-meter sword (attack plus 500) 300¥\\
\\
0. Exit\\
\\
";
    cout<<"You have"<<gold<<"Yuan";
    cin >> b;
    if(b == 1) {
        if(gold < 20)
            slowout("Can't afford it!\\
");
        if(z1) {
            slowout("You bought it");
            cout<<endl;
        } else {
            slowout("Purchase successful!\\
");
            gold -= 20;
            jx + = 4;
            j=jx;
            z1=true;
        }
        system("pause");
        goto c;
    }
    if(b == 2) {
        if(gold < 30)
            slowout("Can't afford it!\\
");
        if(z2) {
            slowout("You bought it");
            cout<<endl;
        } else {
            slowout("Purchase successful!\\
");
            gold -= 30;
            jx + = 5;
            j=jx;
            z2=true;
        }
        system("pause");
        goto c;
    }
    if(b == 3) {
        if(gold < 40)
            slowout("Can't afford it!\\
");
        if(z3) {
            slowout("You bought it");
            cout<<endl;
        } else {
            slowout("Purchase successful!\\
");
            gold -= 40;
            jx + = 6;
            j=jx;
            z3=true;
        }
        system("pause");
        goto c;
    }
    if(b == 4) {
        if(gold < 50)
            slowout("Can't afford it!\\
");
        if(z4) {
            slowout("You bought it");
            cout<<endl;
        } else {
            slowout("Purchase successful!\\
");
            gold -= 50;
            jx + = 4;
            j=jx;
            z4=true;
        }
        system("pause");
        goto c;
    }
    if(b == 5) {
        if(gold < 60)
            slowout("Can't afford it!\\
");
        if(z5) {
            slowout("You bought it");
            cout<<endl;
        } else {
            slowout("Purchase successful!\\
");
            gold -= 60;
            jx + = 7;
            j=jx;
            z5=true;
        }
        system("pause");
        goto c;
    }
    if(b == 6) {
        if(gold < 150)
            slowout("Can't afford it!\\
");
        if(z6) {
            slowout("You bought it");
            cout<<endl;
        } else {
            slowout("Purchase successful!\\
");
            gold -= 150;
            jn++;
            z6=true;
        }
        system("pause");
        goto c;
    }
    if(b==7) {
        if(gold<300)
            slowout("Can't afford it\\
");
        if(z7) {
            slowout("You bought it");
            cout<<endl;
        } else {
            slowout("Purchase successful!\\
");
            gold -= 300;
            jx + =500;
            j=jx;
            z7=true;
        }
        system("pause");
        goto c;
    }
    if(b==0)
        goto a;
    if(b != 0 & amp; & amp;b != 1 & amp; & amp;b != 2 & amp; & amp;b != 3 & amp; & amp;b != 4 & amp; & amp;b != 5 & amp; & amp;b != 6 & amp; & amp;b!=7)
        goto x;
x:
    slowout("Input error!");
    Sleep(500);
    goto a;
BOSS:
    slowout("Are you sure?(1/2)");
    cin >> ysan;
    if(ysan == 2) goto a;
    if(ysan != 2 & amp; & amp; ysan != 1) goto x;
    system("cls");
    slowout("You entered the Castle of Evil. Suddenly, the door closed behind you\\
");
    slowout("The surroundings are dark and full of dangers. You heard someone coming!!!\\
");
    Sleep(500);
    slowout("The wolf guard is coming towards you!\\
");
    wap(2000,1000,10000,"Wolf Guard",1000,2000);
    if(dhpx == false || ysi != 1)goto a;
    slowout("You defeated the wolf guard and move on.\\
");
    slowout("Although you won the first battle, you know that the real enemy is far more than that, so you are more vigilant!!!\\
");
    Sleep(500);
    slowout("The female wolf patrol is coming to you!\\
");
    wap(2500,2000,10000,"Wolf Patrol",2000,4000);
    if(dhpx == false || ysi != 1)goto a;
    slowout("You defeated the she-wolf patrolman and continue exploring.\\
");
    slowout ("You have arrived at the top of the Castle of Evil. If the clues are correct, the werewolf should be inside!!!\\
");
    Sleep(500);
    slowout("The werewolf's personal bodyguard is coming to you!\\
");
    wap(4000,3000,20000,"Werewolf's personal bodyguard",3000,7000);
    if(dhpx == false || ysi != 1)goto a;
    slowout("You defeated the werewolf's personal bodyguard and came to the deepest part of the Evil Castle\\
");
    Sleep(500);
gameover2:
    if(kg==true) {
        cout<<"You actually practiced plug-in magic!!!"<<endl;
        slowout("The werewolf's status greatly increased after taking the blood pill");
        wap(40000,6000,1000000,"Werewolf",100000000,100000000);
    }
    printf("The werewolf is coming to you");
    cout << name;
    printf("Come on!\\
");
    Sleep(800);
    if(kg==false) {

        slowout("Hey, kid, I think you are a little brat, so I'd better let you order it, lest you get knocked down by me!!!");
        slowout("Suddenly, your pet feels a force coming to you\\
");
        Sleep(800);
        slowout("It evolved into a Chinese garden dog!\\
");
        j + = 10000;
        jx=j;
        f + = 300;
        fx=f;
        hp + = 10000;
        wap(10000,10000,100000,"Werewolf",100000000,100000000);
    } else if(kg==true) {
        slowout("You actually practiced the cheating method!!!\\
Hahaha, don't you know that I specialize in cheating?");
        Sleep(800);
        wap(200000,200000,5000000,"Werewolf",1,1);
    }
    if(dhpx == false || ysi != 1)goto a;
    else gameover();
    return 0;
}