0_0_20384344_7502.cpp: In function 'int main()': 0_0_20384344_7502.cpp:35:32: error: 'i' was not declared in this scope ans+=(double)m*stu[i].c; ^