fork download
  1. constexpr int X = 100;
  2.  
  3. double A[X * X * X];
  4. double B[X * X * X];
  5.  
  6. constexpr void f(double (&A)[X * X * X], double(&B)[X * X * X], int i, int j, int k)
  7. {
  8. int index = i + X * j + X * X * k;
  9. A[index] = B[index];
  10. }
  11.  
  12. int main()
  13. {
  14. f(A, B, 2, 3, 1);
  15. }
  16.  
Success #stdin #stdout 0s 31688KB
stdin
Standard input is empty
stdout
Standard output is empty