Borderou de evaluare (job #2779464)
Utilizator | Data | 3 octombrie 2021 20:07:25 | |
---|---|---|---|
Problema | LCDR | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:16:3: error: 'vector' does not name a type
16 | vector<pair<int,int> > ref;
| ^~~~~~
main.cpp: In function 'void rmq::construct()':
main.cpp:24:20: error: 'ref' was not declared in this scope
24 | for(int i=0; i<ref.size(); i++) {
| ^~~
main.cpp:30:33: error: 'ref' was not declared in this scope
30 | for(int i=0; i+(1<<step)<=ref.size(); i++) {
| ^~~
main.cpp:31:63: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
31 | rmq[step][i]=min(rmq[step-1][i],rmq[step-1][i+(1<<step-1)]);
| ~~~~^~
main.cpp:35:21: error: 'ref' was not declared in this scope
35 | for(int i=2; i<=ref.size(); i++)
| ^~~
main.cpp: In function 'void rmq::init()':
main.cpp:39:5: error: 'ref' was not declared in this scope
39 | ref.resize(n*m);
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !