Borderou de evaluare (job #1743707)

Utilizator mouse_wirelessMouse Wireless mouse_wireless Data 18 august 2016 16:35:02
Problema Ciclu Eulerian Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void addEdge(int, int)’: user.cpp:26:35: error: no matching function for call to ‘edge::edge(int&, std::list<edge*>::iterator)’ edge *e1 = new edge(y, G[y].end()); ^ user.cpp:26:35: note: candidates are: user.cpp:12:2: note: edge::edge(int, std::list<edge*>::iterator&) edge(int v, list<edge*>::iterator &e) : vertex(v), complement(e) { } ^ user.cpp:12:2: note: no known conversion for argument 2 from ‘std::list<edge*>::iterator {aka std::_List_iterator<edge*>}’ to ‘std::list<edge*>::iterator& {aka std::_List_iterator<edge*>&}’ user.cpp:8:7: note: constexpr edge::edge(const edge&) class edge { ^ user.cpp:8:7: note: candidate expects 1 argument, 2 provided user.cpp:8:7: note: constexpr edge::edge(edge&&) user.cpp:8:7: note: candidate expects 1 argument, 2 provided user.cpp:28:37: error: no matching function for call to ‘edge::edge(int&, std::list<edge*>::iterator)’ edge *e2 = new edge(x, G[x].begin()); ^ user.cpp:28:37: note: candidates are: user.cpp:12:2: note: edge::edge(int, std::list<edge*>::iterator&) edge(int v, list<edge*>::iterator &e) : vertex(v), complement(e) { } ^ user.cpp:12:2: note: no known conversion for argument 2 from ‘std::list<edge*>::iterator {aka std::_List_iterator<edge*>}’ to ‘std::list<edge*>::iterator& {aka std::_List_iterator<edge*>&}’ user.cpp:8:7: note: constexpr edge::edge(const edge&) class edge { ^ user.cpp:8:7: note: candidate expects 1 argument, 2 provided user.cpp:8:7: note: constexpr edge::edge(edge&&) user.cpp:8:7: note: candidate expects 1 argument, 2 provided user.cpp: In function ‘int main()’: user.cpp:96:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ciclueuler.in", "r", stdin); ^ user.cpp:97:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ciclueuler.out", "w", stdout); ^ user.cpp:100:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &N, &M); ^ user.cpp:107:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &x, &y); ^

Ceva nu functioneaza?