Problem party_noi
User bestatchinesechess
Submission Time 2025-02-13 23:22:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

party_noi.cpp: In function ‘int main()’:
party_noi.cpp:15:3: error: ‘seats’ was not declared in this scope
15 | seats = n / 2;
| ^~~~~
party_noi.cpp:17:3: error: ‘seats’ was not declared in this scope
17 | seats = (n / 2) + 1;
| ^~~~~
party_noi.cpp:21:44: error: ‘seats’ was not declared in this scope
21 | for (int i = friends.size() - 1; i > (i - seats); i--) {
| ^~~~~