/in/foo.c: In function 'main':
/in/foo.c:22:69: warning: 'temp[1]' may be used uninitialized in this function [-Wmaybe-uninitialized]
lenth += 2 * PI * r + sqrt(pow((arr[count % 2][0] - temp[0]), 2) + pow(arr[count % 2][1] - temp[1], 2));;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.c:22:29: warning: 'temp[0]' may be used uninitialized in this function [-Wmaybe-uninitialized]
lenth += 2 * PI * r + sqrt(pow((arr[count % 2][0] - temp[0]), 2) + pow(arr[count % 2][1] - temp[1], 2));;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~