I
I
im_noob2021-05-14 16:48:10
Prolog
im_noob, 2021-05-14 16:48:10

Why swears at the word domains?

I'm trying to run code from a lab. I am getting an error with domains.

domains
    vlad,nom_tel = symbol
predicates
    tel(vlad,nom_tel)
сlauses
    tel (“Арбузов”, “72-41-02”).     %факт 1
    tel (“Иванов”, “74-11-93”).       %факт 2
    tel (“Бабкина”, “72-41-41”).     %факт 3
    tel (“Артемов”, “41-97-44”).     %факт 4
    tel (“Воржев”, “77-06-18”).       %факт 5
    tel (“Гуляев”, “72-41-73”).       %факт 6
    tel (“Деев”, “77-22-19”).       %факт 7
    tel (“Еремина”, “72-40-24”).     %факт 8
goal
tel ("Иванов", X).

1 screen from the laboratory 609e7f7283ca6135779864.png
2 screen from me (for some reason it emphasizes the word domains) 609e7f7969666731894193.png
Visual prolog 9 environment

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-05-14
@vabka

Probably a crooked encoding of the file, and it actually underlines the non-printable character before the word domains.
Try copying all the text and creating the file again.
Try also hovering over the underlined area - it should explain the error in more detail

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question