Problem | party_noi |
---|---|
User | RandomCtfNoob |
Submission Time | 2024-02-26 15:32:09 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
party_noi.cpp: In function ‘int main()’:
party_noi.cpp:8:2: error: expected initializer before ‘if’
8 | if (N%2 == 0){
| ^~
party_noi.cpp:10:3: error: ‘else’ without a previous ‘if’
10 | }else{
| ^~~~
party_noi.cpp:11:3: error: ‘seats’ was not declared in this scope; did you mean ‘seat’?
11 | seats = (N+1)/2;
| ^~~~~
| seat
party_noi.cpp:15:3: error: ‘arr’ was not declared in this scope
15 | arr[i-1] = A;
| ^~~
party_noi.cpp:17:7: error: ‘arr’ was not declared in this scope
17 | sort(arr,arr+N);
| ^~~
party_noi.cpp:18:19: error: ‘seats’ was not declared in this scope; did you mean ‘seat’?
18 | for (i = 1; i <= seats; i++){
| ^~~~~
| seat
party_noi.cpp: At global scope:
party_noi.cpp:30:1: error: expected declaration before ‘}’ token
30 | }
| ^