1. ## Can't find problem

I would be most gratefull if someone could tell me what is wrong. The error is '"<Unknown>' : missing subscript". The arrow points to the function. Please help

#include<stdio.h>

char Prim(char edgeArray1[], char edgeArray2[], int weightArray[], char nodeArray[], char startPointArray[], char endPointArray[], int weightVisitArray[], int adjacencyArray[]);

int main()
{
int shortestEdgeLength = 999;
int shortestEdgeIndex = 0;
char startPoint = 'a';
int index = 9, index2 = 0, m = 14,n = 9;
//An array to hold the start point of each edge
char edgeArray1[9];
//An array to hold the end point of each edge
char edgeArray2[9];
//An array to hold the Weights of the Edges
int weightArray[9];
//An array to hold the adacency table
char startPointArray[9];
char nodeArray[9];
//An array to hold the end vertice of visited edges
char endPointArray[9];
//An array to hold the weights of visited edges
int weightVisitArray[9];

.
. The stuff in this gap reads the information in an array
.
startPointArray[0] = startPoint;
//visited points
nodeArray[0] = startPoint;
printf("\n");
//Call the Prim method to find minimum spanning tree
Prim(edgeArray1, edgeArray2, weightArray, nodeArray, startPointArray, endPointArray, weightVisitArray, adjacencyArray);

}
//Method to find minimum spanning tree using Prim's Algorithm

char Prim(char edgeArray1[], char edgeArray2[], int weightArray[], char nodeArray[],
char startPointArray[], char endPointArray[], int weightVisitArray[], int adjacencyArray[][])

Thanks
b-ref

2. In your Prim prototype, you have:

char Prim(char edgeArray1[], char edgeArray2[], int weightArray[], char nodeArray[], char startPointArray[], char endPointArray[], int weightVisitArray[], int adjacencyArray[]);

and later when you call the function you have:

char Prim(char edgeArray1[], char edgeArray2[], int weightArray[], char nodeArray[],
char startPointArray[], char endPointArray[], int weightVisitArray[], int adjacencyArray[][])

notice that the adjacencyArray in the prototype is a 1D array and in the function call it is a 2D array

Hope this helps

3. Is everyone using really old lame compilers? Because unless I'm mistaken, EVERY modern compiler will give you a line number telling you where the problem is located to within 3 lines. That kind of narrows it down enough to find an extra [], no?