Problem penguingathering
User blob
Submission Time 2023-12-10 21:52:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

penguingathering.cpp: In function ‘int main()’:
penguingathering.cpp:15:21: error: ‘n’ was not declared in this scope
15 | for (int x = 0; x < n; x++){
| ^
penguingathering.cpp:17:24: error: ‘arr’ was not declared in this scope
17 | curCost += (long long)(arr[x] - loc) * (arr[x] - loc);
| ^~~