mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 16:24:03 -05:00
8 lines
136 B
C++
8 lines
136 B
C++
int testFunction(int* input, int length) {
|
|
int sum = 0;
|
|
for (int i = 0; i < length; ++i) {
|
|
sum += input[i];
|
|
}
|
|
return sum;
|
|
}
|