fork download
  1. #include<iostream>
  2. #include<vector>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int k;
  8. int a[4] = { 1,2,3,4 };
  9. int b[4] = { 3,2,4,1 };
  10.  
  11. a[3] = b[k];
  12. cout << k;
  13. }
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
Standard output is empty