Borderou de evaluare (job #2829770)
Utilizator | Data | 8 ianuarie 2022 22:29:12 | |
---|---|---|---|
Problema | Distante | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'bool Undirected::is_correct_graph(std::vector<int>)':
main.cpp:143:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
143 | if(v>grade.size())
| ~^~~~~~~~~~~~~
main.cpp: In member function 'void Undirected::dfs_util(int, int, int&, bool*)':
main.cpp:177:17: error: 'nod_final' was not declared in this scope
177 | nod_final = vecin;
| ^~~~~~~~~
main.cpp: In member function 'int Undirected::kruskall()':
main.cpp:189:10: error: 'muchii' was not declared in this scope
189 | sort(muchii.begin(),muchii.end());
| ^~~~~~
main.cpp:196:13: error: 'numar_muchii' was not declared in this scope
196 | numar_muchii ++;
| ^~~~~~~~~~~~
main.cpp:197:13: error: 'arbore' was not declared in this scope; did you mean 'abort'?
197 | arbore.push_back(make_pair(muchie.second.second,muchie.second.first));
| ^~~~~~
| abort
main.cpp: In member function 'int Disjoint::find(int)':
main.cpp:207:8: error: 'parinte' was not declared in this scope; did you mean 'printf'?
207 | if(parinte[x]==x) return x;
| ^~~~~~~
| printf
main.cpp:208:12: error: 'parinte' was not declared in this scope; did you mean 'printf'?
208 | return parinte[x] = find(parinte[x]);
| ^~~~~~~
| printf
main.cpp: In member function 'void Disjoint::unite(int, int)':
main.cpp:217:12: error: 'greutate' was not declared in this scope
217 | if(greutate[parinte_x]<greutate[parinte_y])
| ^~~~~~~~
main.cpp:219:9: error: 'parinte' was not declared in this scope; did you mean 'printf'?
219 | parinte[parinte_y]=parinte_x;
| ^~~~~~~
| printf
main.cpp:220:9: error: 'greutate' was not declared in this scope
220 | greutate[parinte_x]+=greutate[parinte_y];
| ^~~~~~~~
main.cpp: In member function 'void Undirected::util(int, int)':
main.cpp:228:9: error: 'niv_min' was not declared in this scope
228 | niv_min[cur] = nivel[cur] = ++time;
| ^~~~~~~
main.cpp:228:24: error: 'nivel' was not declared in this scope
228 | niv_min[cur] = nivel[cur] = ++time;
| ^~~~~
main.cpp:229:9: error: 'st' was not declared in this scope; did you mean 'std'?
229 | st.push(cur);
| ^~
| std
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !