Pagini recente » Borderou de evaluare (job #2694753) | Borderou de evaluare (job #1270421) | Borderou de evaluare (job #1475348) | Borderou de evaluare (job #2940395) | Borderou de evaluare (job #2813278)
Borderou de evaluare (job #2813278)
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 |
1 | 2ms | 184kb | OK | 5 |
2 | 2ms | 184kb | OK | 5 |
3 | 2ms | 184kb | OK | 5 |
4 | 11ms | 528kb | OK | 5 |
5 | 2ms | 184kb | OK | 5 |
6 | 2ms | 184kb | OK | 5 |
7 | 2ms | 184kb | OK | 5 |
8 | 2ms | 184kb | OK | 5 |
9 | 2ms | 184kb | OK | 5 |
10 | 2ms | 184kb | OK | 5 |
11 | 35ms | 2162kb | OK | 5 |
12 | 30ms | 2617kb | OK | 5 |
13 | 44ms | 3784kb | OK | 5 |
14 | 53ms | 5070kb | OK | 5 |
15 | 72ms | 5697kb | OK | 5 |
16 | 92ms | 6844kb | OK | 5 |
17 | 121ms | 16388kb | OK | 5 |
18 | 11ms | 4939kb | OK | 5 |
19 | 16ms | 5431kb | OK | 5 |
20 | 108ms | 9166kb | OK | 5 |
Punctaj total | 100 |