I was doing a problem when I encountered a segmentation fault while declaring an array as:
long long ways[max+1];
where,
unsigned int max = findMax(l,T); // l is an unsigned int array and T is an int.
and findMax is a function of the type:
unsigned int findMax(unsigned int arr[],int size)
How can I resolve this?