That's if it is to do the computation only, and pass the results back so main() can print them. On the other hand if compute() will also print the results (which is probably better in this case) then the declaration might look like this: ...
accepted.cpp:Infunction'int Test(int*, int, int)':accepted.cpp:6:9:error:declaration of'int length'shadows a parameterintlength=sizeof(a)/sizeof(a[0]);^accepted.cpp:6:26:warning:'sizeof'on array function parameter'a'willreturnsize of'int*'[-Wsizeof-array-argument]intlength=sizeof(a...