Problem homeworkextension
User Jiaming
Submission Time 2023-01-11 18:02:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

homeworkextension.cpp: In function ‘int main()’:
homeworkextension.cpp:19:13: error: ‘sum’ was not declared in this scope; did you mean ‘sun’?
19 | sum+=a[x];
| ^~~
| sun
homeworkextension.cpp:23:11: error: ‘sum’ was not declared in this scope; did you mean ‘sun’?
23 | cout<<sum;
| ^~~
| sun