Problem | penguingathering |
---|---|
User | blob |
Submission Time | 2023-12-09 11:27:03 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
penguingathering.cpp: In function ‘int main()’:
penguingathering.cpp:16:46: error: expected primary-expression before ‘{’ token
16 | if (penguins[N / 2 - 1] and penguins[N / 2];{
| ^
penguingathering.cpp:16:46: error: expected ‘)’ before ‘{’ token
16 | if (penguins[N / 2 - 1] and penguins[N / 2];{
| ~ ^
| )
penguingathering.cpp:22:9: error: ‘minAnnoyance’ was not declared in this scope
22 | minAnnoyance += abs(median - penguins[i]);
| ^~~~~~~~~~~~
penguingathering.cpp:25:13: error: ‘minAnnoyance’ was not declared in this scope
25 | cout << minAnnoyance << endl;
| ^~~~~~~~~~~~