0_0_24909119_32025.cpp: In function 'int main()': 0_0_24909119_32025.cpp:17:13: error: 'score' was not declared in this scope sum+=max(score[i]/10*4,tmp); ^