if else
if else
assignment is performed in curly braces, and scoreList is used only in curly braces. Screenshot 1, the scoreList variable declaration is immediately outside, screenshot 2, and the variables obtained by curly braces still have this problem. Remove the colon and change the assignment immediately