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