Borderou de evaluare (job #1751520)
Utilizator | Data | 1 septembrie 2016 15:19:24 | |
---|---|---|---|
Problema | Arbore partial de cost minim | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int kruskal()’:
user.cpp:59:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < edges.size(); i++) {
^
user.cpp:75:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < rez.size(); i++) {
^
user.cpp:76:44: error: ‘pritf’ was not declared in this scope
pritf("%d %d\n", rez[i].x, rez[i].y);;
^
user.cpp:79:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘int uni(int, int)’:
user.cpp:55:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:83:28: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen(FIN, "r",stdin);
^
user.cpp:84:29: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen(FOUT,"w",stdout);
^
user.cpp:85:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n,&m);
^
user.cpp:89:45: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d", &e.x,&e.y,&e.cost);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !