#include <stdio.h>
#define NMAX 10
void input(int *a, int *n);
void output(int *a, int n);
void squaring(int *a, int n);
int main()
{
int n, data[NMAX];
input(data, n);
squaring(data, n);
output(data, n);
return 0;
}
void input(int *a, int *n) {
if(scanf("%d", n
) != 1 || n
> NMAX
|| n
< 0) { }
else {
for(int *p = a; p - a < n; p++) {
}
}
}
void squaring(int *a, int n) {
for(int *p = a; p - a < n; p++) {
*p=(*p)*(*p);
}
}
void output(int *a, int n) {
for (int *p = a; p - a < n; p++) {
}
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNkZWZpbmUgTk1BWCAxMCAgCgp2b2lkIGlucHV0KGludCAqYSwgaW50ICpuKTsgICAgIAp2b2lkIG91dHB1dChpbnQgKmEsIGludCBuKTsgICAgICAgCnZvaWQgc3F1YXJpbmcoaW50ICphLCBpbnQgbik7ICAgICAgICAgCgppbnQgbWFpbigpICAgICAgIAp7CiAgICBpbnQgbiwgZGF0YVtOTUFYXTsgCiAgICBpbnB1dChkYXRhLCBuKTsgICAKICAgIHNxdWFyaW5nKGRhdGEsIG4pOyAKICAgIG91dHB1dChkYXRhLCBuKTsgIAogICAgcmV0dXJuIDA7Cn0KCnZvaWQgaW5wdXQoaW50ICphLCBpbnQgKm4pIHsgICAgICAKICAgIGlmKHNjYW5mKCIlZCIsIG4pICE9IDEgfHwgbiA+IE5NQVggfHwgbiA8IDApIHsKICAgICAgICBwcmludGYoIm4vYVxuIik7CiAgICB9ICAgICAKICAgIGVsc2UgewogICAgICAgIGZvcihpbnQgKnAgPSBhOyBwIC0gYSA8IG47IHArKykgeyAgICAgCiAgICAgICAgICAgIHNjYW5mKCIlZCIsIHApOyAgIAogICAgICAgICAgIH0KICAgIH0KfQp2b2lkIHNxdWFyaW5nKGludCAqYSwgaW50IG4pIHsgIAogICAgZm9yKGludCAqcCA9IGE7IHAgLSBhIDwgbjsgcCsrKSB7CiAgICAgICAgKnA9KCpwKSooKnApOyAgICAKICAgIH0KfQp2b2lkIG91dHB1dChpbnQgKmEsIGludCBuKSB7CiAgICBmb3IgKGludCAqcCA9IGE7IHAgLSBhIDwgbjsgcCsrKSB7CiAgICAgICAgcHJpbnRmKCIlZCIsICpwKTsgICAKICAgIH0KfQ==