C++ is case-sensitive. Firstname != FirstName. Lastname != LastName.
PS: Your program might compile, but it's technically not standard C++, because C++ doesn't allow for variable length arrays (VLAs), like you have on line 21.
You could change it to an std::vector or change the array to have a static max size.