Closed yositomi-opu closed 7 months ago
Please can you confirm the version you are using? I can't reproduce the problem in the "development" branch. Instructions on how to find your version are here: https://docs.stack-assessment.org/en/Authoring/Author_FAQ/#which-version-of-stack-do-i-have
Sorry for the lack of information. The question did work correctly in STACK 4.2, but in the version 'STACK 2023121100' it does not work. Thanks in advance.
The messege was: ノード{$a->node}は以下のランタイムエラーを引き起こしました。([en]: The node ($a->node) has ocrrured the following runtime error) evaluation: array tmp must have 2 indices; found: tmp[1]
I cannot attache xml or .txt file, so paste by pbcopy(sorry for japanese).
<?xml version="1.0" encoding="UTF-8"?>
次の各行列について, 積 AB, BA が定義されているか答えよ.
定義されているならば型を答え, 定義されていないならば \(0\times 0\) と答えよ.
(1) \( A = \) {@PA[1]@}, \( B = \) {@PB[1]@}
積 \(AB\) の型 : [[input:ans111]] \(\times\) [[input:ans112]], 積 \(BA\) の型 : [[input:ans121]] \(\times\) [[input:ans122]]
(2) \( A= \) {@PA[2]@}, \(B = \) {@PB[2]@}
積 \(AB\) の型 : [[input:ans211]] \(\times\) [[input:ans212]] , 積 \(BA\) の型 : [[input:ans221]] \(\times\) [[input:ans222]]
(3) \(A = \) {@PA[3]@}, \(B = \) {@PB[3]@}
積 \(AB\) の型 : [[input:ans311]] \(\times\) [[input:ans312]], 積 \(BA\) の型 : [[input:ans321]] \(\times\) [[input:ans322]]
]]>
\(AB\) の \( (i,j) \) 成分は \(A\) の \( i \) 行と \(B\) の \( j \) 列の積になります.
]]>[[feedback:prt2]]
[[feedback:prt3]]
]]>
Could you please email the .xml to me at C.J.Sangwin@ed.ac.uk? I'll take a look. Chris
Yes, it is possible that "tmp" was globally reserved by mistake in that version. I can't reproduce the error on either the latest release (2024012900) or in the development code in "dev" branch. Thanks for reporting it, and I'm very sorry this has caused you a problem.
Thanks. I report to administrator and asked to update.
I'm encountering an issue when I define tmp[i,j] := rand(5) - 3 in the question variables. The system generates an error saying, 'tmp should have one index, but has a double index.' in the feedback message. It seems like the keyword 'tmp' might be globally reserved in STACK, causing a conflict with the user-defined 'tmp'. Is this correct? Changing not to use tmp, lambda([i,j],rand(5)-3) instead, the issue do not happen. Any insights or solutions would be greatly appreciated. Thank you.
Please forgive me if this issue is already known and has been fixed. I'll contact the system admin to update STACK.