Getting wrong size for string input


#1

for the input string A, I calculate length like this int n=A.size() or int n=A.length();
but n is always 1 no matter what my input is.


#2

A.length() worked for me.