From the above quoted line you can see the real problem is that the compiler doesn't recognize mkdir as a function, ad it's suggesting to use rmdir because it has only one different char (such hints are useful for finding typos, but don't rely too much on them in other cases).
To make it...