Problem snowball
User shoryu386
Submission Time 2023-01-08 00:49:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

snowball.cpp: In function ‘int main()’:
snowball.cpp:11:10: error: ‘arr’ was not declared in this scope
11 | cin >> arr[x];
| ^~~
snowball.cpp:16:22: error: ‘arr’ was not declared in this scope
16 | if (x == maxindex) arr[x] += b;
| ^~~
snowball.cpp:18:10: error: ‘arr’ was not declared in this scope
18 | ans += arr[x] * arr[x];
| ^~~