#ifndef POINTER01_H_
#define POINTER01_H_
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cassert>
void sum (int *arr[]);
int main ()
{
int n;
scanf("%d", &n);
int **arr = (int **) malloc(sizeof(int*[n + 1]));
for (int i = 0; i < n; i++)
{
arr[i] = (int *) malloc(sizeof(int));
scanf("%d", arr[i]);
}
arr[n] = NULL;
sum(arr);
}
#endif // POINTER01_H_
I2lmbmRlZiBQT0lOVEVSMDFfSF8KI2RlZmluZSBQT0lOVEVSMDFfSF8KCiNpbmNsdWRlIDxjc3RkaW8+CiNpbmNsdWRlIDxjc3RkbGliPgojaW5jbHVkZSA8Y3N0cmluZz4KI2luY2x1ZGUgPGNhc3NlcnQ+Cgp2b2lkIHN1bSAoaW50ICphcnJbXSk7CgppbnQgbWFpbiAoKQp7CiAgICBpbnQgbjsKICAgIHNjYW5mKCIlZCIsICZuKTsKICAgIAogICAgaW50ICoqYXJyID0gKGludCAqKikgbWFsbG9jKHNpemVvZihpbnQqW24gKyAxXSkpOwogICAgZm9yIChpbnQgaSA9IDA7IGkgPCBuOyBpKyspCiAgICB7CiAgICAgICAgYXJyW2ldID0gKGludCAqKSBtYWxsb2Moc2l6ZW9mKGludCkpOwogICAgICAgIHNjYW5mKCIlZCIsIGFycltpXSk7CiAgICB9CiAgICBhcnJbbl0gPSBOVUxMOwoKICAgIHN1bShhcnIpOwp9CiNlbmRpZiAvLyBQT0lOVEVSMDFfSF8K