0_0_35201814_14423.cpp: In function 'int main()': 0_0_35201814_14423.cpp:42:7: error: redeclaration of 'int k' int k = strlen(s) - 1; ^ 0_0_35201814_14423.cpp:32:7: note: 'int k' previously declared here int k = 0; ^