Borderou de evaluare (job #666776)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Mediana (clasa a 10-a) | Compilator | cpp-32 |
Rundă | selectie_cexgj | Status | evaluat |
Dată | 4 oct. 2022 20:52:20 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:18:18: error: 'piv' was not declared in this scope; did you mean 'div'?
18 | if(x>piv)
| ^~~
| div
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:13: error: 'piv' was not declared in this scope; did you mean 'div'?
26 | piv=*(vec.begin()+(n+1)/2-1);
| ^~~
| div
main.cpp:26:19: error: 'vec' was not declared in this scope
26 | piv=*(vec.begin()+(n+1)/2-1);
| ^~~