Borderou de evaluare (job #2596745)
Utilizator | Data | 10 aprilie 2020 12:16:39 | |
---|---|---|---|
Problema | Secvmax | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:1: error: 'vector' does not name a type
vector<pair<int,int> > v;
^~~~~~
main.cpp: In function 'int bs(int)':
main.cpp:14:10: error: 'v' was not declared in this scope
if(q<v[0].first)
^
main.cpp:16:11: error: 'v' was not declared in this scope
if(q>=v[n-1].first)
^
main.cpp:24:12: error: 'v' was not declared in this scope
if(v[med].first<=q)
^
main.cpp: In function 'int main()':
main.cpp:49:9: error: 'v' was not declared in this scope
v.push_back({val[i],st[i]+dr-1});
^
main.cpp:52:10: error: 'v' was not declared in this scope
sort(v.begin(),v.end());
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !