Problem penguingathering
User lygrace
Submission Time 2026-06-24 15:31:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

penguingathering.cpp: In function ‘int main()’:
penguingathering.cpp:11:11: error: ‘X’ cannot be used as a function
11 | cin>>X(i);
| ^
penguingathering.cpp:14:10: error: ‘LLONG_MAX’ was not declared in this scope
14 | int ans=LLONG_MAX;
| ^~~~~~~~~
penguingathering.cpp:5:1: note: ‘LLONG_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
4 | #include <cmath>
+++ |+#include <climits>
5 | using namespace std;
penguingathering.cpp:17:22: error: invalid types ‘int[int]’ for array subscript
17 | int dist = pow(X[i]-p);
| ^