fork download
  1. #include <iostream>
  2. #include <stdlib.h>
  3. using namespace std;
  4.  
  5. int rnd() {
  6. return (1 << 16) - 1;
  7. }
  8.  
  9. int main() {
  10. cout << ( (rnd() << 16) ^ rnd() ) << endl;
  11. cout << ( ((unsigned)rnd() << 16) ^ rnd() ) << endl;
  12. return 0;
  13. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
-1
4294967295