0_0_31460567_6875.cpp: In function 'int main()': 0_0_31460567_6875.cpp:9:19: error: 'n' was not declared in this scope for(i=0;i<n;i++) ^ 0_0_31460567_6875.cpp:12:18: error: 'a' was not declared in this scope sum+=a; ^