Borderou de evaluare (job #2216796)
Utilizator | Data | 27 iunie 2018 23:11:53 | |
---|---|---|---|
Problema | Arbore partial de cost minim | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:12:1: error: ‘vector’ does not name a type
vector<pair<int,int> >apm;
^~~~~~
user.cpp: In function ‘void Kruskal()’:
user.cpp:63:13: error: ‘apm’ was not declared in this scope
apm.push_back(make_pair(v[i].x,v[i].y));
^~~
user.cpp: In function ‘void printAPM()’:
user.cpp:71:5: error: ‘vector’ was not declared in this scope
vector<pair<int,int> >::iterator it;
^~~~~~
user.cpp:71:26: error: expected primary-expression before ‘>’ token
vector<pair<int,int> >::iterator it;
^
user.cpp:71:38: error: missing template arguments before ‘it’
vector<pair<int,int> >::iterator it;
^~
user.cpp:74:9: error: ‘it’ was not declared in this scope
for(it = apm.begin(); it != apm.end(); it++)
^~
user.cpp:74:14: error: ‘apm’ was not declared in this scope
for(it = apm.begin(); it != apm.end(); it++)
^~~
user.cpp: In function ‘void readGraph()’:
user.cpp:21:29: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d%d",&n,&m);
^
user.cpp:23:53: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d%d%d",&v[i].x,&v[i].y,&v[i].c);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !