fork download
  1. #define _CRT_SECURE_NO_WARNINGS
  2. #include<bits/stdc++.h>
  3. using namespace std;
  4. typedef long long ll;
  5. int main()
  6. {
  7. int idx = 3;
  8. char x[] = "out00000000000000000000000000000000.txt";
  9. for (int ii = 0; ii < 100; ii++){
  10. if (x[idx] == '9')
  11. idx++;
  12. freopen(x, "w", stdout);
  13. x[idx]++;
  14.  
  15.  
  16. }
  17. }
Success #stdin #stdout 0.01s 5308KB
stdin
Standard input is empty
stdout
Standard output is empty