Problem party_noi
User tanyap2906
Submission Time 2025-06-10 16:28:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

party_noi.cpp: In function ‘int main()’:
party_noi.cpp:16:9: error: ‘seats’ was not declared in this scope
16 | seats = n/2+1;
| ^~~~~
party_noi.cpp:19:9: error: ‘seats’ was not declared in this scope
19 | seats = n/2;
| ^~~~~
party_noi.cpp:23:13: error: ‘seats’ was not declared in this scope
23 | if (seats == 0){
| ^~~~~
party_noi.cpp:30:9: error: ‘seats’ was not declared in this scope
30 | seats -= 1;
| ^~~~~
party_noi.cpp:31:18: error: expected ‘}’ at end of input
31 | cout << total;
| ^
party_noi.cpp:22:32: note: to match this ‘{’
22 | for (int i = 0; i < n; i++){
| ^
party_noi.cpp:31:18: error: expected ‘}’ at end of input
31 | cout << total;
| ^
party_noi.cpp:8:11: note: to match this ‘{’