| Problem | penguingathering |
|---|---|
| User | hklzz |
| Submission Time | 2026-06-24 16:53:09 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
cc1plus: error: ‘::main’ must return ‘int’
cc1plus: error: ‘::main’ must return ‘int’
penguingathering.cpp:16:5: error: conflicting declaration of C function ‘int main()’
16 | int main() {
| ^~~~
penguingathering.cpp:7:5: note: previous declaration ‘int main(const std::vector<long long int>&, long long int)’
7 | int main(const vector<int>& x, int k) {
| ^~~~
penguingathering.cpp: In function ‘int main()’:
penguingathering.cpp:31:17: error: ‘cost’ was not declared in this scope; did you mean ‘cosl’?
31 | cout << min(cost(X, k1), cost(X, k2)) << "\n";
| ^~~~
| cosl