fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int foo[] = {0, foo[0] + 1, foo[1] + 2, foo[2] + 4 };
  6.  
  7. for(const auto i : foo) cout << i << ' ';
  8. }
Success #stdin #stdout 0s 4348KB
stdin
Standard input is empty
stdout
0 1 3 7