Problem | ballot |
---|---|
User | PaxyPanda |
Submission Time | 2023-11-14 10:06:22 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
ballot.cpp: In function ‘int main()’:
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 {
| ~
ballot.cpp:40:4: error: expected ‘,’ or ‘;’ before ‘while’
40 | while(org[index] != *lower){
| ^~~~~
ballot.cpp:44:24: error: expected ‘;’ before ‘}’ token