#include <stdio.h>
#include <stdlib.h>
int main() {
int tam;
int *vet
= malloc(tam
* sizeof(int));
printf("\nEntre com os elementos do vetor:\n"); for (int i
= 0; i
< tam
; i
++) scanf("%d", &vet
[i
]); printf("Elementos do vetor:\n"); for (int i
= 0; i
< tam
; i
++) printf("%d ", vet
[i
]); }
//https://pt.stackoverflow.com/q/318510/101
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCmludCBtYWluKCkgewoJaW50IHRhbTsKICAgIHByaW50ZigiVGFtYW5obyBkbyB2ZXRvcjogIik7CiAgICBzY2FuZigiJWQiLCAmdGFtKTsKICAgIGludCAqdmV0ID0gbWFsbG9jKHRhbSAqIHNpemVvZihpbnQpKTsKICAgIAogICAgcHJpbnRmKCJcbkVudHJlIGNvbSBvcyBlbGVtZW50b3MgZG8gdmV0b3I6XG4iKTsKICAgIGZvciAoaW50IGkgPSAwOyBpIDwgdGFtOyBpKyspIHNjYW5mKCIlZCIsICZ2ZXRbaV0pOwogICAgcHJpbnRmKCJFbGVtZW50b3MgZG8gdmV0b3I6XG4iKTsKICAgIGZvciAoaW50IGkgPSAwOyBpIDwgdGFtOyBpKyspIHByaW50ZigiJWQgIiwgdmV0W2ldKTsKfQoKLy9odHRwczovL3B0LnN0YWNrb3ZlcmZsb3cuY29tL3EvMzE4NTEwLzEwMQ==