0_0_35859674_18318.cpp: In function 'int main()': 0_0_35859674_18318.cpp:47:13: error: redeclaration of 'int len' int len=0; ^ 0_0_35859674_18318.cpp:33:13: note: 'int len' previously declared here int len=str.length(); ^