Main.cc: In function 'int main()': Main.cc:7:24: error: 'strlen' was not declared in this scope char *p=&a[strlen(a)-1]; ^