fork(1) download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int n;
  8. cin >> n;
  9. int a[n] {1,2,3};
  10. for (int x : a) cout << x << ' ';
  11. return 0;
  12. }
Success #stdin #stdout 0s 4500KB
stdin
2
stdout
1 2