Problem | ballot |
---|---|
User | blob |
Submission Time | 2023-11-21 17:02:34 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
ballot.cpp: In function ‘int main()’:
ballot.cpp:7:24: error: expected primary-expression before ‘)’ token
7 | for (int i=0; i<N; i+=){
| ^
ballot.cpp:14:36: error: invalid type argument of unary ‘*’ (have ‘int’)
14 | auto it = m.upper_bound(*number[i]+j);
| ^
ballot.cpp:15:58: error: invalid type argument of unary ‘*’ (have ‘int’)
15 | if (m.lower_bound(number[i]) == m.upper_bound(*number[i]+j)){
| ^
ballot.cpp:16:21: error: expected ‘;’ before ‘}’ token
16 | cout << i << "\n"
| ^
| ;
17 | }
| ~
ballot.cpp:18:63: error: invalid type argument of unary ‘*’ (have ‘int’)
18 | else if (m.upper_bound(number[i]) == m.upper_bound(*number[i]+j)){
|