0_0_37409552_1844.cpp: In function 'int main()': 0_0_37409552_1844.cpp:62:11: error: 'link' was not declared in this scope ans+=w[link y[i]][i]; ^ 0_0_37409552_1844.cpp:62:16: error: expected ']' before 'y' ans+=w[link y[i]][i]; ^