As an undergraduate student taking upper division math, I naturally have to prove many theorems, identities, etc. However, sometimes I simply cannot work out a valid proof, even after many, many hours of work. So, I end up back here, find a question someone else asked, and suddenly the proof is obvious. Now the problem is that I didn't write the proof, and by some metrics that means I plagiarized my proof, and "didn't answer".
Obviously the ideal course is that I would stubbornly spend as many waking hours as is necessary parsing them through in my head, but sometimes I just don't know enough, or I don't have time to spend 10 hours on it when I have other work to finish, too.
Additionally, what is the "proper" way to get help? I believe that the widespread approach is to search online, but this doesn't help if your proof isn't standard coursework. What is a student to do if they need help with a complicated or obscure proof?
The real question here is:
What is the value of writing proofs yourself? How much do you lose by struggling with it, realizing you can't accomplish it, and getting help? To what extent is it reasonable to do this, and does it indicate that a student is under qualified for that course?
The simple fact that you spend hours working on a proof is useful. It's not a waste of time at all. Even if you don't finally find the proof, this work will make you progress, because it makes you explore ideas and try many different things. And this will pay off later, because whether you are aware of it or not, these ideas will remain in some place of your brain, and you'll be able to use them later, for another (similar) problem. Or at least, you'll learn to know a little better if an idea has a chance to work or not. That's how you develop intuition in math: spend hours trying to find proof and read other's proofs.
By the way, not being able to find all proofs and needing help is perfectly normal, this is part of the learning process in maths.