Main.cc: In function 'int main()': Main.cc:9:13: error: 's2' was not declared in this scope int len =s2.length(); ^ Main.cc:5:8: warning: unused variable 'c' [-Wunused-variable] int c=0; ^