double squaredsum(double *l, int e)
{
   int i; double sum = 0.0;
   for(i = 0 ; i < e ; i++) sum += l[i]*l[i];
   return sum;
}

int main()
{
   double list[6] = {3.0, 1.0, 4.0, 1.0, 5.0, 9.0};

   printf(, squaredsum(list, 6));
   printf(, squaredsum(list, 0));
   
   printf(, squaredsum(NULL, 0));
   return 0;
}