fork download
  1. #include "stdafx.h"
  2. #include <iostream>
  3. using namespace std;
  4. void main()
  5. {
  6. setlocale(LC_ALL, "Russian");
  7. int *str;
  8. int n, i, j;
  9. cout << "Введите размер массива ";
  10. cin >> n;
  11. str = new int[n];
  12. for (i = 0; i < n; i++)
  13. {
  14. cout << "Введите " << i + 1 << " элемент массива ";
  15. cin >> str[i];
  16. }
  17. for (int i = 0; i<n; i + 3)
  18. {
  19. cout << str[i]<<endl;
  20. }
  21. system("pause");
  22. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:20: fatal error: stdafx.h: No such file or directory
compilation terminated.
stdout
Standard output is empty