Вот код: #include <iostream> #include <string> using namespace std; int main() { string good_pass = "test"; string user_pass; string code = "12345"; string code_user; cout << "Enter Passworld "; getline(cin, user_pass); if (user_pass == good_pass) { cout << "Your code: 12345"; } else { cout << "error" << endl; } cout << "Enter passworld"; getline(cin, code_user); if (code_user == code); { cout << "Thanks" } else { cout << "error" << endl; } return 0; } Код #include <iostream> #include <string> using namespace std; int main() { string good_pass = "test"; string user_pass; string code = "12345"; string code_user; cout << "Enter Passworld "; getline(cin, user_pass); if (user_pass == good_pass) { cout << "Your code: 12345"; } else { cout << "error" << endl; } cout << "Enter passworld"; getline(cin, code_user); if (code_user == code); { cout << "Thanks" } else { cout << "error" << endl; } return 0; } в ошибках пишет что второму else нужен if а он есть. что делать?
теперь пишет это https://imgur.com/a/l0cWjHj --- Сообщение объединено с предыдущим 11 окт 2019 проблему решил --- Сообщение объединено с предыдущим 11 окт 2019 спасибо