Borderou de evaluare (job #666780)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Mediana (clasa a 10-a) | Compilator | cpp-32 |
Rundă | selectie_cexgj | Status | evaluat |
Dată | 4 oct. 2022 20:53:04 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:19:17: error: 'vec' was not declared in this scope
19 | vec.insert(upper_bound(vec.begin()+(n+1)/2,vec.end(),x),x);
| ^~~
main.cpp:21:17: error: 'vec' was not declared in this scope
21 | vec.insert(upper_bound(vec.begin(),vec.begin()+(n+1)/2-1,x),x);
| ^~~
main.cpp:26:19: error: 'vec' was not declared in this scope
26 | piv=*(vec.begin()+(n+1)/2-1);
| ^~~