Main.cc: In function 'int main()': Main.cc:8:2: error: expected ';' before 'int' int n=s.length(); ^ Main.cc:10:16: error: 'n' was not declared in this scope for(int i=0;i