Borderou de evaluare (job #2429902)
Utilizator | Data | 11 iunie 2019 20:00:33 | |
---|---|---|---|
Problema | Tri | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:40:5: error: 'vector' does not name a type
vector<int> active;
^~~~~~
main.cpp: In member function 'void MonotoneGetKth::go_next()':
main.cpp:53:25: error: 'active' was not declared in this scope
cnt_left += active[wh];
^~~~~~
main.cpp:56:38: error: 'active' was not declared in this scope
while(cnt_left > target_k || active[wh] == 0){///possible source of bugs
^~~~~~
main.cpp: In constructor 'MonotoneGetKth::MonotoneGetKth(const int&, const int&)':
main.cpp:65:15: error: 'class MonotoneGetKth' has no member named 'active'
this->active = vector<int>(n,0);
^~~~~~
main.cpp:65:24: error: 'vector' was not declared in this scope
this->active = vector<int>(n,0);
^~~~~~
main.cpp:65:31: error: expected primary-expression before 'int'
this->active = vector<int>(n,0);
^~~
main.cpp: In member function 'void MonotoneGetKth::add(int)':
main.cpp:73:9: error: 'active' was not declared in this scope
active[pos] = 1;
^~~~~~
main.cpp: In member function 'void MonotoneGetKth::rem(int)':
main.cpp:80:9: error: 'active' was not declared in this scope
active[pos] = 0;
^~~~~~
main.cpp: In function 'void print_sol(MonotoneGetKth&, MonotoneGetKth&, std::pair<double, double>)':
main.cpp:124:14: error: 'class MonotoneGetKth' has no member named 'active'
if(c.active[i]){
^~~~~~
main.cpp:133:14: error: 'class MonotoneGetKth' has no member named 'active'
if(a.active[i]){
^~~~~~
main.cpp: In function 'int main()':
main.cpp:204:9: warning: unused variable 'target_point_cnt' [-Wunused-variable]
int target_point_cnt = n / 3;
^~~~~~~~~~~~~~~~
main.cpp:156:61: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d %d",&vertex[i].first,&vertex[i].second);
^
main.cpp:159:22: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",&n);
^
main.cpp:162:59: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d %d",&point[i].first,&point[i].second);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !