Problem penguingathering
User blob
Submission Time 2023-12-12 00:01:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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