0_0_32952809_32016.cpp: In function 'int main()': 0_0_32952809_32016.cpp:40:38: error: 'a' was not declared in this scope total += (double)m / a[i].b*a[i].a; ^