#include <stdio.h>
#include <string.h>
int main() {
char binario[16][5] = {"0000","0001","0010","0011","0100","0101","0110","0111","1000","1001","1010","1011","1100","1101","1110","1111"};
char nome[10];
int contador = 0;
for (; contador < 16; contador++) {
if (strcmp(nome
, binario
[contador
]) == 0) { break;
}
}
if (contador == 16) {
printf("Base inicial invalida"); //essa mensagem não faz sentido com o enunciado }
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KCmludCBtYWluKCkgewoJY2hhciBiaW5hcmlvWzE2XVs1XSA9IHsiMDAwMCIsIjAwMDEiLCIwMDEwIiwiMDAxMSIsIjAxMDAiLCIwMTAxIiwiMDExMCIsIjAxMTEiLCIxMDAwIiwiMTAwMSIsIjEwMTAiLCIxMDExIiwiMTEwMCIsIjExMDEiLCIxMTEwIiwiMTExMSJ9OwoJY2hhciBub21lWzEwXTsKCXByaW50ZigiSW5zaXJhIHVtIHZhbG9yXG4iKTsKCXNjYW5mKCIlcyIsIG5vbWUpOwoJaW50IGNvbnRhZG9yID0gMDsKCWZvciAoOyBjb250YWRvciA8IDE2OyBjb250YWRvcisrKSB7CgkJaWYgKHN0cmNtcChub21lLCBiaW5hcmlvW2NvbnRhZG9yXSkgPT0gMCkgewoJCQlicmVhazsKCQl9Cgl9IAoJaWYgKGNvbnRhZG9yID09IDE2KSB7CgkJcHJpbnRmKCJCYXNlIGluaWNpYWwgaW52YWxpZGEiKTsgLy9lc3NhIG1lbnNhZ2VtIG7Do28gZmF6IHNlbnRpZG8gY29tIG8gZW51bmNpYWRvCgl9Cn0=