This question seems to be related to Error: Expected variable in READ statement at (1) but it is not the same, since I have declared the variables.
program read_m