Problem | party_noi |
---|---|
User | ethanK1RB0 |
Submission Time | 2025-03-14 16:30:21 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
party_noi.cpp: In function ‘int main()’:
party_noi.cpp:12:7: error: ‘i’ was not declared in this scope
12 | for (i=0;i<n;i++){
| ^
party_noi.cpp:13:8: error: ‘arr’ was not declared in this scope
13 | cin>>arr[i];
| ^~~
party_noi.cpp:15:8: error: ‘arr’ was not declared in this scope
15 | sort((arr).rbegin(), (arr).rend());
| ^~~
party_noi.cpp: At global scope:
party_noi.cpp:16:3: error: expected unqualified-id before ‘for’
16 | }for (int a=0;a<seats;a++){
| ^~~
party_noi.cpp:16:16: error: ‘a’ does not name a type
16 | }for (int a=0;a<seats;a++){
| ^
party_noi.cpp:16:24: error: ‘a’ does not name a type
16 | }for (int a=0;a<seats;a++){
| ^
party_noi.cpp:18:3: error: ‘cout’ does not name a type
18 | }cout<<total;
| ^~~~