#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//tirei os comentários porque eles davam indicações erradas mesmo
//o erro de runtime é provocado propositalmente pelo código através da função exit
void vazio(void) {
char c;
int i = 0;
do {
if (c != '\n') {
str[i++] = c;
}
} while (c != '\n');
str[i] = '\0';
}
}
int main(void) {
vazio();
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KI2luY2x1ZGUgPHN0cmluZy5oPgoKLy90aXJlaSBvcyBjb21lbnTDoXJpb3MgcG9ycXVlIGVsZXMgZGF2YW0gaW5kaWNhw6fDtWVzIGVycmFkYXMgbWVzbW8KLy9vIGVycm8gZGUgcnVudGltZSDDqSBwcm92b2NhZG8gcHJvcG9zaXRhbG1lbnRlIHBlbG8gY8OzZGlnbyBhdHJhdsOpcyBkYSBmdW7Dp8OjbyBleGl0CnZvaWQgdmF6aW8odm9pZCkgewogICAgY2hhciAqc3RyID0gbWFsbG9jKDEpOwogICAgY2hhciBjOwogICAgaW50IGkgPSAwOwoKICAgIHByaW50ZigiSW5mb3JtZSBhIHN0cmluZzogIik7CiAgICBkbyB7CiAgICAgICAgYyA9IGdldGMoc3RkaW4pOwogICAgICAgIGlmIChjICE9ICdcbicpIHsKICAgICAgICAgICAgc3RyID0gcmVhbGxvYyhzdHIsIGkgKyAxKTsKICAgICAgICAgICAgc3RyW2krK10gPSBjOwogICAgICAgIH0KICAgIH0gd2hpbGUgKGMgIT0gJ1xuJyk7CiAgICBzdHJbaV0gPSAnXDAnOwogICAgaWYoc3RybGVuKHN0cikgPT0gMCB8fCBzdHJjbXAoc3RyLCAiMCIpID09IDApIHsKICAgICAgICBwcmludGYoIlw3XGFcbkVycm8hXG4iKTsKICAgICAgICBleGl0KEVYSVRfRkFJTFVSRSk7CiAgICB9CiAgICBwcmludGYoIlxuU3RyaW5nOiAlcyIsIHN0cik7CiAgICBmcmVlKHN0cik7Cn0KCmludCBtYWluKHZvaWQpIHsKCXZhemlvKCk7CglyZXR1cm4gMDsKfQ==