fork(1) download
  1. #include <iostream>
  2. #include <limits>
  3. using namespace std;
  4.  
  5. int main() {
  6. // your code goes here
  7. unsigned char a = 1;
  8. a = -a;
  9. cout << (unsigned)a << '\n'
  10. << (unsigned)numeric_limits<decltype(a)>::max();
  11. return 0;
  12. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
255
255