Earlier quoted context omitted.
Back when I worked as a tutor, we knew a lot about the professors since most of us were also TAs at some point or worked as TAs concurrently. Some were consistent in busting people for cheating, others tried to avoid it at all costs (because they based their self-worth on their Rate My Professor page), but a few were just capricious and arbitrary. On their good side? "Eh, everyone uses Stack Overflow [or forgets to d…
With code, as long as it works, so what. Plus learning a language requires copying to learn how to do it correctly. Would you want to be required to be completely original learning French? It makes no sense to burn people for doing what it took industry decades to figure out.
Working as a lab instructor a lifetime ago, I graded two students' C assignments that both worked (mostly) but clearly without understanding what was going on.
It took me a while to figure out how they worked; as it turned out, they declared the same variables at the top of each function in the same order.
They didn't have globals, they weren't passing values around: the stack was being allocated across the same memory for each function, so the variables "just worked."