Problem | ballot |
---|---|
User | PaxyPanda |
Submission Time | 2023-11-14 10:06:07 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
ballot.cpp: In function ‘int main()’:
ballot.cpp:12:17: error: expected ‘;’ before ‘}’ token
12 | org[i] = n_num
| ^
| ;
13 | }
| ~
ballot.cpp:26:4: error: expected ‘,’ or ‘;’ before ‘while’
26 | while(org[index] != *higher){
| ^~~~~
ballot.cpp:30:25: error: expected ‘;’ before ‘}’ token
30 | sorted.erase(*higher)
| ^
| ;
31 | } else if(c_num - (*lower) < (*higher) - c_num){ //distance to lower is smaller
| ~
ballot.cpp:33:4: error: expected ‘,’ or ‘;’ before ‘while’
33 | while(org[index] != *lower){
| ^~~~~
ballot.cpp:37:24: error: expected ‘;’ before ‘}’ token
37 | sorted.erase(*lower)
| ^
| ;
38 | } else {
| ~ <