Problem | competition |
---|---|
User | yhmixeI |
Submission Time | 2024-12-07 17:00:41 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
competition.cpp: In function ‘int main()’:
competition.cpp:7:6: error: conflicting declaration ‘long long int bio [n]’
7 | int bio[n];
| ^~~
competition.cpp:5:16: note: previous declaration as ‘long long int bio’
5 | int n,a,b,phy,bio;
| ^~~
competition.cpp:14:9: error: request for member ‘begin’ in ‘p’, which is of non-class type ‘std::pair<long long int, long long int> [n]’
14 | sort(p.begin(),p.end());
| ^~~~~
competition.cpp:14:19: error: request for member ‘end’ in ‘p’, which is of non-class type ‘std::pair<long long int, long long int> [n]’
14 | sort(p.begin(),p.end());
| ^~~
competition.cpp:16:13: error: expected primary-expression before ‘]’ token
16 | if (bio[n-] == p[n-1].second) {
| ^
competition.cpp:18:4: error: expected primary-expression before ‘}’ token
18 | }
| ^
competition.cpp