fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. uint16_t n = -1.0;
  6. int16_t n2 = 3235346345248634.0;
  7. int16_t n3 = INT16_MAX + 1;
  8. int16_t n4 = INT32_MAX;
  9. cout << n << endl << n2 << endl << n3 << endl << n4;
  10. // your code goes here
  11. return 0;
  12. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
0
32767
-32768
-1