Borderou de evaluare (job #2208139)

Utilizator IustinPetrariuIustinian Petrariu IustinPetrariu Data 28 mai 2018 13:43:34
Problema Plan Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:12:30: error: conflicting declaration ‘std::vector<std::pair<int, int> > sett’ vector < pair < int , int > >sett; ^~~~ user.cpp:11:21: note: previous declaration as ‘int sett [100001]’ int X[NMAX],Y[NMAX],sett[NMAX]; ^~~~ user.cpp: In function ‘int visit(int)’: user.cpp:17:10: error: ‘vizited’ was not declared in this scope if(!vizited[node]) ^~~~~~~ user.cpp:18:10: error: ‘visited’ was not declared in this scope visited[node]=1; ^~~~~~~ user.cpp:19:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i =0 ; i < G[node].size(); i++) ~~^~~~~~~~~~~~~~~~ user.cpp:21:6: error: ‘L’ was not declared in this scope L.push_back(node); ^ user.cpp:22:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ user.cpp: In function ‘void create(int, int)’: user.cpp:25:11: error: invalid types ‘int[int]’ for array subscript c[node]=component; ^ user.cpp:27:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0 ; i < Gt[node].size(); i++) ~~^~~~~~~~~~~~~~~~~ user.cpp:30:17: error: ‘neight’ was not declared in this scope if(!c[neight]) ^~~~~~ user.cpp:34:1: error: a function-definition is not allowed here before ‘{’ token { ^ user.cpp:97:1: error: expected ‘}’ at end of input } ^

Ceva nu functioneaza?