0_0_33230561_650.cpp: In function 'int main()': 0_0_33230561_650.cpp:12:24: error: 'sum' was not declared in this scope for(int i=0;i<=sum;i++) ^