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
int adjacencyArray[9][9];
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