string aux; int maxy,auxx=0; cin>>aux; maxy= (int)sqrt(aux.size());
I\'m geting:
1> error C2668: \'sqrt\' : ambiguous c
string::size() returns size_t, and sqrt doesn't accept it in any of its versions. So the compiler has to cast, and cannot choose to what - all of them are OK. You have to put explicit cast:
string::size()
size_t
sqrt
maxy = (int)sqrt((double)aux.size());