0_0_38433159_10898.cpp: In function 'int main()': 0_0_38433159_10898.cpp:7:10: error: 'sum' was not declared in this scope cout << sum << endl; ^