fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a[5];
  6. for(int i = 0; i < 3; ++ i) a[i] = i;
  7. for(int i = 0; i < 3; ++ i) cout << i[a] << '\n';
  8. return 0;
  9. }
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
0
1
2