Community colleges offer CS classes. Whether they’ll be accepted as specific prerequisites at a specific 4-year institution would require further research, but it’s definitely not a reason to completely dismiss community college. You can also go to community college for one year, then transfer to a university. There’s no requirement to get a degree before transferring.
Source: I did one year of community college before transferring into the computer & electrical engineering program at a university.
Source: I did one year of community college before transferring into the computer & electrical engineering program at a university.