Pagini recente » Borderou de evaluare (job #2928668) | Atasamentele paginii Profil bradeacora | Borderou de evaluare (job #1248413) | Borderou de evaluare (job #702052) | Borderou de evaluare (job #2813285)
Borderou de evaluare (job #2813285)
Raport evaluator
Compilare:
main.cpp: In constructor 'graph::graph(int, int, std::vector<std::vector<int> >&)':
main.cpp:35:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
35 | for( int j = 0; j < ad[i].size(); ++j)
| ~~^~~~~~~~~~~~~~
main.cpp: In constructor 'graph::graph(int, int, std::vector<std::vector<int> >&, std::vector<std::vector<int> >&)':
main.cpp:43:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
43 | for( int j = 0; j < ad[i].size(); ++j){
| ~~^~~~~~~~~~~~~~
main.cpp: In member function 'void graph::DFS(int, bool*)':
main.cpp:68:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
68 | for( int i = 0; i < Ad[nod].size(); ++i ){
| ~~^~~~~~~~~~~~~~~~
main.cpp: In member function 'void graph::DFS_r(int, std::vector<bool>&, std::vector<std::vector<int> >&, std::vector<int>&)':
main.cpp:76:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
76 | for( int i = 0; i < ad[nod].size(); ++i ){
| ~~^~~~~~~~~~~~~~~~
main.cpp: In member function 'void graph::BFS(int)':
main.cpp:88:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
88 | Q.pop(); for( int i = 0; i < Ad[x].size(); ++i ){
| ~~^~~~~~~~~~~~~~
main.cpp: In member function 'void graph::Kruskal()':
main.cpp:133:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
133 | for( int i = 1; i <= nodes; ++i )
| ^~~
main.cpp:134:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
134 | disjoint_sets[i] = {i,1}; for( int i = 1; i <= M; ++i ){
| ^~~
main.cpp:149:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
149 | for( int i = 0; i < Sol.size(); ++i )
| ~~^~~~~~~~~~~~
main.cpp: In member function 'void graph::Dijkstra(int)':
main.cpp:160:9: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
160 | else vis[nod] = 1; for( int i = 0; i < Ad[nod].size(); ++i ){ int w = Ad[nod][i];
| ^~~~
main.cpp:160:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
160 | else vis[nod] = 1; for( int i = 0; i < Ad[nod].size(); ++i ){ int w = Ad[nod][i];
| ^~~
main.cpp:160:46: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
160 | else vis[nod] = 1; for( int i = 0; i < Ad[nod].size(); ++i ){ int w = Ad[nod][i];
| ~~^~~~~~~~~~~~~~~~
main.cpp: In member function 'void graph::BellmanFord(int)':
main.cpp:178:45: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
178 | inQ[nod] = false; for( int i = 0; i < Ad[nod].size(); ++i ){
| ~~^~~~~~~~~~~~~~~~
main.cpp: In member function 'void graph::TopoDFS(int, std::vector<bool>&, std::stack<int>&)':
main.cpp:203:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
203 | for( int i = 0; i < Ad[nod].size(); ++i ){
| ~~^~~~~~~~~~~~~~~~
main.cpp: In member function 'void graph::TopoSort()':
main.cpp:212:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
| 1 | 2ms | 184kb | OK | 10 | 10 |
| 2 | 2ms | 184kb | OK | 10 | 10 |
| 3 | 2ms | 184kb | OK | 10 | 10 |
| 4 | 2ms | 184kb | OK | 10 | 10 |
| 5 | 2ms | 184kb | OK | 10 | 10 |
| 6 | 2ms | 184kb | OK | 10 | 10 |
| 7 | 6ms | 1167kb | OK | 10 | 10 |
| 8 | 16ms | 4472kb | OK | 10 | 30 |
| 9 | 25ms | 7139kb | OK | 10 |
| 10 | 30ms | 8716kb | OK | 10 |
| Punctaj total | 100 |