fork download
  1. #include <iostream>
  2. #include <stdio.h>
  3. #include <cstdlib> // size_t
  4. #include <limits>
  5.  
  6. using namespace std;
  7.  
  8. int main() {
  9. const size_t maxSize = std::numeric_limits<size_t>::max();
  10. printf("%u\n", maxSize);
  11. printf("%u\n", (size_t)-1);
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0.01s 5412KB
stdin
Standard input is empty
stdout
4294967295
4294967295