Criei um for para receber e guardar os numeros no array e copiei a função, mas por algum motivo o compilado esta dando o seguinte erro "exercicio74.c:25:6: error: called object type 'int' is not a function or function pointer"
#include <stdio.h>
void soma(int numeros[10]) {
int total = 0;
for(int i = 0; i < 10; i++) {
total += numeros[i];
}
printf("O total é %d", total);
}
int main() {
int numeros[10];
int soma;
printf("Digite 10 numeros:\n");
for(int i = 1; i < 10; i++) {
printf("Numero %d:", i);
scanf(" %d", &numeros[i]);
}
soma(numeros[10]);
}