What does this error mean?
I am getting these errors when I try to compile, can someone help
--------------------Configuration: Cpp1 - Win32 Debug--------------------
Compiling...
Cpp1.cpp
F:\Cpp1.cpp(29) : error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' (or there is no acceptable conversion)
F:\Cpp1.cpp(46) : error C2181: illegal else without matching if
F:\Cpp1.cpp(50) : error C2181: illegal else without matching if
F:\Cpp1.cpp(54) : error C2181: illegal else without matching if
F:\Cpp1.cpp(58) : error C2181: illegal else without matching if
F:\Cpp1.cpp(62) : error C2181: illegal else without matching if
F:\Cpp1.cpp(74) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
Cpp1.obj - 7 error(s), 0 warning(s)
and here is the code:
#include <iostream>
#include <string>
using namespace std;
int main()
{
int dum = 0;
char bleh;
string input;
string str2 = "ABC", str3 = "DEF", str4 = "GHI",
str5 = "JKL";
string str6 = "MNO", str7 = "PQRS", str8 = "TUV",
str9 = "WXYZ";
cout << "Please enter a Seven letter word, all uppercase ";
getline(cin, input);
if (input.length() !=7)
{
cout << "The word you typed in is not seven characters in length";
return 1;
}
while (dum <= 6)
{
bleh = input.substr(0,1);
if (str2.find(bleh) != string::npos)
{
cout << "2";
}
else if (str3.find(bleh) != string::npos)
{
cout << "3";
}
else if (str4.find(bleh) != string::npos)
{
cout << "4";
else if (str5.find(bleh) != string::npos)
{
cout << "5";
else if (str6.find(bleh) != string::npos)
{
cout << "6";
else if (str7.find(bleh) != string::npos)
{
cout << "7";
else if (str8.find(bleh) != string::npos)
{
cout << "8";
else if (str9.find(bleh) != string::npos)
{
cout << "9";
dum++;
}
return 0;
}