fork download
  1. #include <iostream>
  2. #include <stdio.h>
  3.  
  4. using namespace std;
  5. int main() {
  6. int n = 100;
  7. int *mass = new int[n];
  8. for (int i = 0; i < n; i++) {
  9. mass[i] = rand() % 50;
  10. cout << " " << mass[i];
  11. }
  12. system("pause");
  13. }
Success #stdin #stdout #stderr 0s 15240KB
stdin
Standard input is empty
stdout
 33 36 27 15 43 35 36 42 49 21 12 27 40 9 13 26 40 26 22 36 11 18 17 29 32 30 12 23 17 35 29 2 22 8 19 17 43 6 11 42 29 23 21 19 34 37 48 24 15 20 13 26 41 30 6 23 12 20 46 31 5 25 34 27 36 5 46 29 13 7 24 45 32 45 14 17 34 14 43 0 37 8 26 28 38 34 3 1 4 49 32 10 26 18 39 12 26 36 44 39
stderr
sh: 1: pause: not found