fork(2) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. size_t n;
  6. cin >> n;
  7. double x[n];
  8. for(size_t i = 0; i < sizeof(x)/sizeof(x[0]); i++)
  9. cin >> x[i];
  10. cout << x[0];
  11. }
Success #stdin #stdout 0s 3476KB
stdin
5
1 2.4 1.23 7.3e-5 0
stdout
1