#include <iostream>
#include <Windows.h>
int main()
{
    SetConsoleCP(1251);
    SetConsoleOutputCP(1251);
    /*setlocale(LC_ALL, "rus");*/
    bool died = false;
    
    float atack_coldown = 2.3f;

    int money = 0;
    int start_bonus = 55;
    int health = 100;
    int damage = 10;
    
    std::string name;

    /*std::cout << "Hello World!\n";*/
    std::cout << "\"Hello C++!\"\n\n";
    std::cout << "Как тебя зовут? \n\n";
    std::cout << "Введите имя: ";
    std::cin >> name;
    std::cout << "\nПриветствую! " << name << "\n\n";
    std::cout << "Держи приведственный бонус \n\nБонус начислен \n\n";
    money += start_bonus;
    std::cout << "Твой баланс = " << money <<"$\n\n";
    std::cout << "Здоровье = " << health << "\n\n";

    money++;
    std::cout <<"о монетка\n" << money << "\n\n";
    money--;
    std::cout << "блин потерял монетку\n" << money << "\n\n";
    int sword_price;
    int input = 0;
    std::cin >> input;
    if (input == 1)
    {
        health -= damage;
        std::cout << "Ауч " << health << "\n\n";
    }
    else if (input == 2)
    {
        std::cout << "скибидиш тоилет\n\n";
    }
    else if (input == 3)
    {
        sword_price = (money > 40) ? 1 : 0;
        if (sword_price == 1) std::cout << "скибидиш тоилет\n\n";
        else std::cout << "у тебя нет денег хахаха\n\n";
    }
    else
    {
        std::cout << "в следующий раз введи норм цифру\n\n";
    }
    input = 0;
    std::cin >> input;
    switch (input)
    {
    case 1:
        health -= damage;
        std::cout << "Ауч " << health << "\n\n";
        break;
    case 2:
        for (int i = 0; i < 10; i++) {
            std::cout << "окей нахреначу 10 раз \n\n";
            if (i == 7) 
            {
                std::cout << "прикинь это 7 надпись \n\n";
            }
            }
        
        break;
    case 3:
        sword_price = (money > 40) ? 1 : 0;
        if (sword_price == 1) std::cout << "скибидиш тоилет\n\n";
        else std::cout << "у тебя нет денег хахаха\n\n";
        break;
    case 4:
    {
        std::cout << "типо 4\n\n";
        int lol = 0;
        while (lol < 100)
        {
            lol++;
            if (lol == 52) {
                std::cout << "какой писят два?" << "\n\n";
                continue;
            }
            std::cout << "понеслась " << lol << "\n\n";
        }
        do
        {
            lol++;
            std::cout << "ну хотя бы ещё однёрку " << lol << "\n\n";
        } while (lol < 100);
        break;
    }
    case 7:
        int massivik[21];
        int sizik = sizeof(massivik) / sizeof(massivik[0]);
        massivik[9] = 2;
        for (int i = 0; i < sizik; i++) {
            std::cout << massivik[i]<<"не юзайте это \n\n";
               
        }
        break;
    }
    case 8:
        int array[21];
        array[9] = 2;
        for (int a; array) {
            std::cout << a << "юзайте это \n\n";

        }
        break;
    }
}


Severity	Code	Description	Project	File	Line	Suppression State	Details
Error	C2143	syntax error: missing ';' before '}'	FirstProject	C:\Users\ilefr\source\repos\FirstProject\FirstProject\FirstProject.cpp	119		
Error (active)	E0121	a case label may only be used within a switch	FirstProject	C:\Users\ilefr\source\repos\FirstProject\FirstProject\FirstProject.cpp	110		
Error (active)	E0065	expected a ';'	FirstProject	C:\Users\ilefr\source\repos\FirstProject\FirstProject\FirstProject.cpp	113		
Error (active)	E0116	a break statement may only be used within a loop or switch	FirstProject	C:\Users\ilefr\source\repos\FirstProject\FirstProject\FirstProject.cpp	117		
Error (active)	E0169	expected a declaration	FirstProject	C:\Users\ilefr\source\repos\FirstProject\FirstProject\FirstProject.cpp	119		
Error	C2046	illegal case	FirstProject	C:\Users\ilefr\source\repos\FirstProject\FirstProject\FirstProject.cpp	110		
Error	C2143	syntax error: missing ';' before ')'	FirstProject	C:\Users\ilefr\source\repos\FirstProject\FirstProject\FirstProject.cpp	113		
Error	C2043	illegal break	FirstProject	C:\Users\ilefr\source\repos\FirstProject\FirstProject\FirstProject.cpp	117		
Error	C2059	syntax error: '}'	FirstProject	C:\Users\ilefr\source\repos\FirstProject\FirstProject\FirstProject.cpp	119