fork download
  1. #include <iostream>
  2. #include <climits>
  3. using namespace std;
  4.  
  5. template<typename T>
  6. void print(int64_t min, int64_t max)
  7. {
  8. printf("%lx %lx\n",
  9. static_cast<int64_t>(static_cast<T>(min)),
  10. static_cast<int64_t>(static_cast<T>(max))
  11. );
  12. }
  13.  
  14. int main() {
  15. // your code goes here
  16. print<int8_t>(0x110, 0x180);
  17.  
  18. return 0;
  19. }
Success #stdin #stdout 0.01s 5388KB
stdin
Standard input is empty
stdout
10 ffffffffffffff80