Какая тут ошибка? Пжл знающие люди. С++
#include <iostream>
using namespace std;
int main()
{
int b;
cout << " RAMMSTEIN \\m/" << endl; cout << " ....... ......." << endl; cout << " .. .." << endl; cout << " .. .." << endl; cout << "................ ......... " << endl; cout << ".. .. .." << endl; cout << ".. .. .." << endl; cout << ".. .. .." << endl; cout << " ... .. "<< endl; cout << ".. .... .. .." << endl; cout << ".. .. .. .. .. " << endl; cout << ".. .. .. .. .." << endl; cout << ".......... ........ ........." << endl; cout << " .. .." << endl; cout << " .. .." << endl; cout << " ....... ......." << endl;
cout << "Skolko let ti slushaesh etu zamechatelnyu gruppu? Esli ti slyshaesh bolshe 12 let vvedi chislo 100"<< endl;
cin >> b;
switch (b);
{
case 0: cout << "ti luzer:3"; break;
case 1: cout << "prodolzhai:)"; break;
case 2: cout << "solidno;)"; break;
case 3: cout << "solidno;)"; break;
case 4: cout << "solidno;)"; break;
case 5: cout << " chuvak, ti dostouen uvazhenia!"; break;
case 6: cout << " chuvak, ti dostouen uvazhenia!"; break;
case 7: cout << " chuvak, ti dostouen uvazhenia!"; break;
case 8: cout << " chuvak, ti dostouen uvazhenia!"; break;
case 9: cout << " ti unikalen!"; break;
case 10: cout << " ti unikalen!"; break;
case 11: cout << " ti unikalen!"; break;
case 12: cout << " ti unikalen!"; break;
case 100: cout << "Till snimaet shlyapky, Manson nervno kyrit:D Molodet!"; break;
} return 0}
Answers & Comments
В конце каждого оператора должна стоять точка с запятой! return - это тоже оператор!
Так вот, после return 0 должна стоять ;, а уже потом }
case 100: cout << "Till snimaet shlyapky, Manson nervno kyrit:D Molodet!"; break;
} return 0;}