#include <stdio.h>
#include <stdlib.h>
#include <locale.h>
#define TAM 10
int difNumbers(int array[], int count) {
int uniqValue[count];
int n = 0;
for(int i = 0; i < count; i++) {
unsigned char foundUnique = 0;
for(int x = 0; x < n; x++) {
if(uniqValue[x] == array[i]) {
foundUnique = 1;
break;
}
}
if(!foundUnique) {
uniqValue[n] = array[i];
n++;
}
}
return n;
}
int main() {
int vector[TAM], i;
for(i = 0; i < TAM; i++) {
}
printf("%d", difNumbers
(vector
, TAM
)); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KI2luY2x1ZGUgPGxvY2FsZS5oPgoKI2RlZmluZSBUQU0gMTAKCmludCBkaWZOdW1iZXJzKGludCBhcnJheVtdLCBpbnQgY291bnQpIHsKICAgIGludCB1bmlxVmFsdWVbY291bnRdOwogICAgaW50IG4gPSAwOwoKICAgIGZvcihpbnQgaSA9IDA7IGkgPCBjb3VudDsgaSsrKSB7CiAgICAgICAgdW5zaWduZWQgY2hhciBmb3VuZFVuaXF1ZSA9IDA7CiAgICAgICAgZm9yKGludCB4ID0gMDsgeCA8IG47IHgrKykgewogICAgICAgICAgICBpZih1bmlxVmFsdWVbeF0gPT0gYXJyYXlbaV0pIHsKICAgICAgICAgICAgICAgIGZvdW5kVW5pcXVlID0gMTsKICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIGlmKCFmb3VuZFVuaXF1ZSkgewogICAgICAgICAgICB1bmlxVmFsdWVbbl0gPSBhcnJheVtpXTsKICAgICAgICAgICAgbisrOwogICAgICAgIH0KICAgIH0KCiAgICByZXR1cm4gbjsKfQoKaW50IG1haW4oKSAgewogICAgc2V0bG9jYWxlKExDX0FMTCwgIlBvcnR1Z3Vlc2UiKTsKICAgIGludCB2ZWN0b3JbVEFNXSwgaTsKCiAgICBmb3IoaSA9IDA7IGkgPCBUQU07IGkrKykgewogICAgICAgIHByaW50ZigiWyVkXToiLCBpKzEpOwogICAgICAgIHNjYW5mKCIlZCIsICZ2ZWN0b3JbaV0pOwogICAgfQogICAgcHJpbnRmKCIlZCIsIGRpZk51bWJlcnModmVjdG9yLCBUQU0pKTsKICAgIHJldHVybiAwOwp9Cg==