Main.cc:2:2: error: invalid preprocessing directive #includem; did you mean #include? #includem ^~~~~~~~ include Main.cc: In function ‘int main()’: Main.cc:8:19: error: ‘strlen’ was not declared in this scope for(int i=0;i