fork(1) download
  1. #include <iostream>
  2. #include <cstdint>
  3.  
  4. enum A {
  5. X = -1,
  6. XX = -1,
  7. Y = UINT64_MAX
  8. };
  9.  
  10. int main()
  11. {
  12. size_t t = sizeof(std::underlying_type<A>::type);
  13. std::cout << t;
  14.  
  15. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
16