Pagini recente » Borderou de evaluare (job #1689408) | Borderou de evaluare (job #2400696) | Borderou de evaluare (job #1691157) | Borderou de evaluare (job #1015175) | Borderou de evaluare (job #2813280)
Borderou de evaluare (job #2813280)
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 | 10 |
2 | 2ms | 184kb | OK | 10 |
3 | 2ms | 184kb | OK | 10 |
4 | 6ms | 331kb | OK | 10 |
5 | 11ms | 368kb | OK | 10 |
6 | 64ms | 2830kb | OK | 10 |
7 | 197ms | 6881kb | OK | 10 |
8 | 192ms | 10842kb | OK | 10 |
9 | 906ms | 20525kb | OK | 10 |
10 | 903ms | 20500kb | OK | 10 |
Punctaj total | 100 |