int name;
how many people do we know who have numbers for names, use std::string name and getline(std::cin, name) after #include <string> header file at top of the program
you also have a lot of weird stuff in your program like void main(), some c-style header files (.h extensions) - if you're self-taught I suggest you get a good book like C++ Primer Plus (5th ed) - Stephen Prata and if you're learing at school .... well ....
no, you made the char type for name error after I told you not to use int for names, review your posts
my point is not to belittle you but it appears that you have some lacunae in understanding basic C++ (admittedly we all do) like what types might be suitable for which variables etc