Just from a quick glance I'll point out things that are kind of setting red flags in my head. I wont bother to shove this into my compiler and figure it out.
1: You declared main as int and the compiler is expecting int.
2: You do not need to type std::string to make a string when you already have the usingnamespace std;
3: string itself is not a sequence of characters. String is actually a class that has specified sections for variables so by comparing a string class to a string literal(Representing string inside source code with "" operators) you're actually comparing everything inside of string including it's iterators, etc, to that string literal so you wont get any accuracy out of that.
4: If you wish to get the string character data you set it to then use the c_str() function that's inside of the string class so it's string.c_str(). This returns char * to the sequence of characters you have inside that string.
5: You don't need the cmath to include basic operator like + = - / %