fork download
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6. int n;
  7. n = rand() % 100;
  8. cout << n << '\n';
  9. for(int i = 1; i <= n; i++) {
  10. cout << rand() % 100 << " ";
  11. }
  12. return 0;
  13. }
Success #stdin #stdout 0s 4720KB
stdin
Standard input is empty
stdout
83
86 77 15 93 35 86 92 49 21 62 27 90 59 63 26 40 26 72 36 11 68 67 29 82 30 62 23 67 35 29 2 22 58 69 67 93 56 11 42 29 73 21 19 84 37 98 24 15 70 13 26 91 80 56 73 62 70 96 81 5 25 84 27 36 5 46 29 13 57 24 95 82 45 14 67 34 64 43 50 87 8 76 78