fork download
  1. #include <iostream>
  2. #include <vector>
  3. #include <cstdint>
  4.  
  5. typedef std::vector <std::uint64_t> DType;
  6.  
  7. DType MakeHoge(){
  8. DType D;
  9.  
  10. for (std::uint64_t i = 1000; i < 10000; i++){
  11. if ((i / 1000) == static_cast<std::uint64_t>((i * (3 / 4.0)) + 1)) D.push_back(i);
  12. }
  13.  
  14. return D;
  15. }
  16.  
  17. bool Show(DType& D){
  18. for (auto& o : D){
  19. std::cout << o << std::endl;
  20. }
  21.  
  22. if (D.size() == 0) std::cout << "Nothing" << std::endl;
  23.  
  24. return true;
  25. }
  26.  
  27. int main(){
  28. DType D;
  29.  
  30. D = MakeHoge();
  31. Show(D);
  32.  
  33. return 0;
  34. }
Success #stdin #stdout 0s 3100KB
stdin
Standard input is empty
stdout
Nothing