Line 27: Needs a ; as pointed out previously.
Line 28: Extraneous { Remove it.
Lines 31-33: card1, card2, card3 do not exist.
Line 41, 46: Do not call srand() multiple times. srand() sets the RNG to a particular starting point. Calling srand() repeatedly can cause the RNG to return the same random numbers. srand() should be called ONCE at the beginning of main().
http://www.cplusplus.com/reference/cstdlib/srand/
This makes the whole loop from 37-51 pointless.
Line 111: money is undefined.
Line 116: ans is undefined.
Lines 117,120: C++ does not support implied left hand side in conditionals. You must fully specify the conditions.
Example:
if (ans == 'Y' || 'y')
evaluates as
if ((ans == 'Y') || ('y'))
('y')
always evaluates to 1 (
true
), therefore the if statement is always true.
Line 118: Extraneous << or you're missing endl
Line 121: continue is not part of a loop.
Line 122: extraneous } Remove it.