0_0_17902602_7862.cpp: In function 'int main()': 0_0_17902602_7862.cpp:10:3: error: 'sum' was not declared in this scope sum+=i; ^ 0_0_17902602_7862.cpp:11:9: error: 'sum' was not declared in this scope cout<<sum<<endl; ^