im getting started off with C... i ran this code and im getting the error "warning: prod may be used uninitialized in this function" please help! i was given an array and had to find the product of all integers within the starting cordinates and ending cordinates.
#include <stdio.h>
int main()
{
printf("start\n");
int array[100][100], N, M, Q, queries[100][4], i, j, k;
long long int prod;
scanf("%d %d", &N, &M);
for (i=0; i<N; i++)
{
for (j=0; j<M; j++)
{
scanf("%d",&array[i][j]);
}
}
scanf("%d",&Q);
for (i=0; i<Q; i++)
{
//queries[i] = {x1, y1, x2, y2}
for (j=0; j<4; j++) scanf("%d",&queries[i][j]);
prod = 1;
for (j=queries[i][0]; j<=queries[i][2]; j++)
{
for (k=queries[i][1]; k<=queries[i][3]; k++)
{
prod *= array[j][k];
prod %= 1000000007;
}
}
}
return prod;
}