system
Given the following post, respond as if you're commenting on Reddit:
human
Can I be charged for plagiarism if I posted my code online and someone used it?

I recently got called into my professors office and I was accused of plagiarizing an assignment. I was completely blindsided by the accusation and told him that I did all my work individually. What I think ended up happening was that someone used my code posted onto a code review website. I posted a question asking for help with an issue in my code, and didn't think it through completely that someone could easily find and copy my code online. The post ended up being deleted due to not following the websites rules, but it was definitely up long enough where someone could copy it. What are my options here?
gpt
Sure, you could be. But you should have a really good defense - that it *was* your work, and you can prove it.

That isn't a guarantee that someone isn't going to railroad you anyway, but if they are actually trying to find the truth, you can prove it.

Your options? It depends. Did they formally accuse you through some sort of student conduct court, grade you a zero, fail you from the class, or just bring it up? If its the later, go and talk to them during office hours, explain it, and prove it.

If its deleted, that may be harder to do, but you should have *something* you can show. An account on the website, an archived version, maybe the mods can bring it back, who knows.