0_0_21560976_15376.cpp: In function 'int main()': 0_0_21560976_15376.cpp:24:21: error: 'i' was not declared in this scope for(i=0,Sum=0;i<n&&flag;i++) ^