Main.cc: In function ‘int main()’: Main.cc:8:16: error: ‘strlen’ was not declared in this scope for(int i=0;i