You are strongly urged to make your printouts the night before. In such a case, you must contact your instructor immediately. If you do, we may not discover it for a long time and won't be able to confirm when you handed it in. If you must miss a mid-term or quiz, contact your instructor immediately. The work you submit must be your own.
Plagiarism is a form of academic fraud and is treated very seriously.
You may consult other texts or discuss general approaches to assignments with others, but you should not leave such discussions with any written material provided by or copied from another person or text. Note that it is a serious offense to help someone commit plagiarism. Do not lend your assignment or let others copy it. It is unfortunate, but experience has shown us that we need to be very careful about plagiarism. Contrary to what you might think, it is not difficult for the graders to detect undue collaboration.