C compile error on my school project

I was compiling my code on my Mac when a error came back saying zsh segmentation fault.

is this project running in a particular compiler, like GCC? is this the first time you run that on Mac? because it can be like the equivalent on Mac does not match the original compiler, say, coming from Windows, compatibility issues,

I tried running clang as the compiler yesterday, and ever since there was this issue.
If it could be the compiler that’s the problem, how do I change it? I’m running on VBC.

if for example, GCC is the compiler used for the original project, then you may try installing the same on Mac,

https://discussions.apple.com/thread/8336714