Borderou de evaluare (job #666601)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Mediana (clasa a 10-a) | Compilator | cpp-32 |
Rundă | selectie_cexgj | Status | evaluat |
Dată | 4 oct. 2022 18:39:28 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:7:1: error: 'vector' does not name a type
7 | vector<int> vec;
| ^~~~~~
main.cpp: In function 'int main()':
main.cpp:17:13: error: 'vec' was not declared in this scope
17 | vec.insert(upper_bound(vec.begin(),vec.end(),x),x);
| ^~~
main.cpp:22:23: error: 'vec' was not declared in this scope
22 | fout << *(vec.begin()+(n+1)/2-1) << "\n";
| ^~~