fork download
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. int main () {
  6.  
  7. char x[] = "00";
  8. for(int i = 1; i <= 20; i++){
  9. if(x[1] == '9'){
  10. x[1] = '0';
  11. x[0]++;
  12. }
  13. else{
  14. x[1]++;
  15. }
  16. char s[] = {x[0], x[1], '.', 'a'};
  17. freopen(x, "r", stdin);
  18. freopen(s, "w", stdout);
  19. int a , b;
  20. cin >> a >> b;
  21. cout << a + b;
  22. }
  23.  
  24. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
Standard output is empty