#include
//补充的代码
int sum(int *arr, int n)
{
int total = 0;
int i;
for (i = 0; i < n; ++i)
total += arr[i];
return total;
}
int main()
{
int junk[3][4]={{2,4,5,8},{3,5,6,9},{12,10,8,6}};
int i;
int total=0;
for(i=0;i<3;i++)
{
total=total+sum(junk[i],4);
}
printf("%d",total);
return 0;
}