hello guys i recieve errors when compiling my code
#include <iostream>
#include <fstream>
#include <string>
int main() {
std::string firstname, lastname, age, emailadress, message;
char answer;
std::cout << "Hello please imput your first name: ";
std::getline(std::cin, firstname);
std::cout << "\nNow please enter your last name: ";
std::getline(std::cin, lastname);
std::cout << "\nYour age: ";
std::getline(std::cin, age);
std::cout << "\nContact email: ";
std::getline(std::cin, emailadress);
std::cout << "\nNow finally what is your message: ";
std::getline(std::cin, message);
std::cout << "\nPress Enter to continue.\n\n";
std::cin.ignore(255,'\n');
std::cout << "The following infomation has been recieved...\n";
std::cout << "Name: " << firstname << " " << lastname << "\nAge: " << age << "\nEmail Adress: ";
std::cout << emailadress << "\nMessage: " << message;
std::cout << "\n\nPress Enter to continue.\n\n";
std::cin.ignore(255,'\n');
std::cout << "Would you like to subit your message: [Y/N] ";
switch (answer) {
case 'Y':
case 'y':
std::ofstream fileOutput("Customer support.txt", std::ios::app);
if (fileOutput.is_open()) {
fileOutput << "Name: " << firstname << " " << lastname << "\nAge: " << age << "\nEmail Adress: " << emailadress << "\nMessage: " << message;
fileOutput.close();
std::cout <<"\n\nThank you for your submission, your infomation has been saved. We will contact you shortly.\n";
break;
case 'N':
case 'n':
std:: cout <<"Thank you anyway.";
break;
default:
std::cout <<"Please choose an option, would you like to submit your message: [Y/N]";
}
std::cin.ignore(255,'\n');
return 0;
}