fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. unsigned int a = 10;
  6. unsigned int b = 5;
  7. cout << a-b << ' ' << b-a << endl;
  8. cout << (unsigned int)(0)-(unsigned int)(1) << endl;
  9. return 0;
  10. }
Success #stdin #stdout 0s 4572KB
stdin
Standard input is empty
stdout
5 4294967291
4294967295