fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. std::size_t total = std::size_t{0};
  6. for (int i = 0; i < 1000000; i++)
  7. {
  8. std::size_t j{};
  9. total += j;
  10. }
  11. std::cout << "Total: " << total << "\n";
  12. return 0;
  13. }
Success #stdin #stdout 0.01s 5312KB
stdin
Standard input is empty
stdout
Total: 0