I believe orange is for reserved symbols. These words are part of the language and you cannot redefine them (e.g. you cannot use the same name for your variables, functions and types).
Red is for known (common) symbols, that the OnlineGDB recognises. It's more like help for the users to read their code easier and spot any potential spelling errors before they'd even start to compile the code.