integer wrap around question

I'm new to c++ and learning from a book. One of the programs I am supposed to be writing demonstrates integer wrap around in part of the code. the code is
score = 4294967295;
cout << "/nscore: " << score << endl;
++score
cout << "score: " << score << endl;
according to the book, I should receive a warning yet the code should still compile. The compiler I'm using won't let the code compile, though. Any idea why? thanks :)
Is that the entire code you're giving the compiler?
Topic archived. No new replies allowed.