This commit is contained in:
Illia Korpan 2026-04-15 09:45:41 +02:00
parent 540900864d
commit 1ab12f2170

View File

@ -42,7 +42,6 @@ Node *parse_node(char **lines, int n, int *idx, int *err) {
(*idx)++;
if (line[0] == '*') {
char *txt = line + 1;
txt = ltrim(txt);
Node *node = malloc(sizeof(Node));
if (!node) { *err = 1; return NULL; }
node->is_answer = 1;
@ -122,7 +121,7 @@ int main(void) {
int valid_input = 0;
while (cur) {
if (cur->is_answer) {
printf("* %s\n", cur->text);
printf("*%s\n", cur->text);
valid_input = 1;
break;
}