Problem | party_noi |
---|---|
User | RogueRanger |
Submission Time | 2024-08-08 17:11:28 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
party_noi.cpp: In function ‘int32_t main()’:
party_noi.cpp:9:10: error: expected ‘;’ before ‘}’ token
9 | cin>>a[i]
| ^
| ;
10 | }
| ~
party_noi.cpp:11:29: error: expected ‘;’ before ‘for’
11 | sort(a, a+n, greater<int>())
| ^
| ;
12 | for (int i=0; i<n-2; i++){
| ~~~
party_noi.cpp:12:15: error: ‘i’ was not declared in this scope
12 | for (int i=0; i<n-2; i++){
| ^