prog.cpp: In function ‘int main()’:
prog.cpp:6:8: error: ‘how’ was not declared in this scope
cout<<how many numbers ?;
^~~
prog.cpp:7:7: error: ‘n’ was not declared in this scope
cin>>n;
^
prog.cpp:9:8: error: ‘enter’ was not declared in this scope
cout<<enter <<n<< numbers;
^~~~~
prog.cpp:9:20: error: ‘numbers’ was not declared in this scope
cout<<enter <<n<< numbers;
^~~~~~~
prog.cpp:10:6: error: ‘i’ was not declared in this scope
for(i=0;i<n;i++)
^
prog.cpp:12:8: error: ‘arr’ was not declared in this scope
cin>>arr[i];
^~~
prog.cpp:13:3: error: ‘sum’ was not declared in this scope
sum+=arr[i];
^~~
prog.cpp:15:9: error: ‘sum’ was not declared in this scope
cout<<sum is <<sum;
^~~