Main.cc: In function 'int main()':
Main.cc:6:2: error: expected ';' before 'int'
int n=strlen(a);
^
Main.cc:6:17: warning: statement has no effect [-Wunused-value]
int n=strlen(a);
^
Main.cc:7:17: error: 'n' was not declared in this scope
for(int i=0;i<=n-1;i++){
^
Main.cc:10:12: error: 'n' was not declared in this scope
for(int i=n-1;i>=0;i--){
^