| Problem | penguingathering |
|---|---|
| User | Rigiddivot251112 |
| Submission Time | 2026-06-24 15:01:42 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
penguingathering.cpp: In function ‘int main()’:
penguingathering.cpp:11:5: error: ‘vector’ was not declared in this scope
11 | vector<long long> x(n);
| ^~~~~~
penguingathering.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include <iostream>
+++ |+#include <vector>
2 | using namespace std;
penguingathering.cpp:11:12: error: expected primary-expression before ‘long’
11 | vector<long long> x(n);
| ^~~~
penguingathering.cpp:14:16: error: ‘x’ was not declared in this scope
14 | cin >> x[i];
| ^
penguingathering.cpp:19:20: error: ‘floor’ was not declared in this scope
19 | long long k1 = floor(mean);
| ^~~~~
penguingathering.cpp:20:20: error: ‘ceil’ was not declared in this scope
20 | long long k2 = ceil(mean);