everyone failed?
well Markus is right, when something like that happens, the only person who should be held responsible is the professor...I mean, how likely is it that not one single person studied for the exam? impossible. so I don't think it's your fault, although I believe that that doesn't mean anything to you right now
just...don't get too desperate...what happened, happened, now you've got to think how to move on, cuz you can't go back to past (although we all sometimes wish that was possible
), you gotta stay focused on future, and everything will be just okay...
you have my support
as for the guy...I know that being 'a silent sufferer' is the easiest, but also the hardest thing you can do in these situations. I say, try to find out how he feels about you, maybe ask him yourself (okay, you won't really ask him: hey, are you in love with me? or anything, there is a bunch of ways to find it out), I mean, it's even better to be disappointed by the truth (although I'm not saying that's what's it going to be!), than to keep worrying yourself with the question 'what if?'. You know what I mean?