#include <stdio.h>
#include<stdlib.h>
int main() {
int N, M, i;
int *v;
v
= (int *)malloc(N
* sizeof (int));
printf ("Entre com os valores do vetor (M): "); for(i=0; i<N;i++){
v[i] = M;
}
for (i=0; i < N; ++i){
v[i] = v[i] + 1;
printf ("Vetor[%d]=%d ",i
, v
[i
]); }
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlPHN0ZGxpYi5oPgogCmludCBtYWluKCkgewogCglpbnQgTiwgTSwgaTsKCWludCAqdjsKIAoJcHJpbnRmICgiRW50cmUgY29tIE46ICIpOwoJc2NhbmYgKCIlZCIsICZOKTsKIAoJdiA9IChpbnQgKiltYWxsb2MoTiAqIHNpemVvZiAoaW50KSk7CgkKICAgIHByaW50ZiAoIkVudHJlIGNvbSBvcyB2YWxvcmVzIGRvIHZldG9yIChNKTogIik7Cglmb3IoaT0wOyBpPE47aSsrKXsKCQlzY2FuZiAoIiVkIFxuIiwgJk0pOwoJCXZbaV0gPSBNOwoJfQogCglmb3IgKGk9MDsgaSA8IE47ICsraSl7CgkJdltpXSA9IHZbaV0gKyAxOyAgICAgICAgICAgICAgICAKCQlwcmludGYgKCJWZXRvclslZF09JWQgIixpLCB2W2ldKTsKCX0KfQ==