0_0_33552745_25721.cpp: In function 'int main()': 0_0_33552745_25721.cpp:120:12: error: 'mi' was not declared in this scope ans += mi * e[i].w; ^