Pagini recente » Borderou de evaluare (job #1104067) | Borderou de evaluare (job #111579) | Borderou de evaluare (job #456838) | Borderou de evaluare (job #3190786) | Borderou de evaluare (job #2801948)
Borderou de evaluare (job #2801948)
Raport evaluator
Compilare:
main.cpp:14:28: warning: integer overflow in expression of type 'int' results in '2147483647' [-Woverflow]
14 | const int INF = (1<<31)-1;
| ~~~~~~~^~
main.cpp: In constructor 'graph::graph(int, int, std::vector<std::vector<int> >&)':
main.cpp:41:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
41 | 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:49:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
49 | for( int j = 0; j < ad[i].size(); ++j){
| ~~^~~~~~~~~~~~~~
main.cpp: In member function 'void graph::DFS(int, bool*)':
main.cpp:75:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
75 | 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:83:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
83 | for( int i = 0; i < ad[nod].size(); ++i ){
| ~~^~~~~~~~~~~~~~~~
main.cpp: In member function 'void graph::BFS(int)':
main.cpp:100:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
100 | for( int i = 0; i < Ad[x].size(); ++i ){
| ~~^~~~~~~~~~~~~~
main.cpp: In member function 'void graph::Kruskal()':
main.cpp:184: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]
184 | for( int i = 0; i < Sol.size(); ++i )
| ~~^~~~~~~~~~~~
main.cpp: In member function 'void graph::Dijkstra(int)':
main.cpp:201:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
201 | for( int i = 0; i < Ad[nod].size(); ++i ){
| ~~^~~~~~~~~~~~~~~~
main.cpp: In member function 'void graph::BellmanFord(int)':
main.cpp:233:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
233 | 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:267:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
267 | for( int i = 0; i < Ad[nod].size(); ++i ){
| ~~^~~~~~~~~~~~~~~~
main.cpp: In member function 'std::vector<std::vector<int> > graph::StronglyConnectedComponents()':
main.cpp:292:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
292 | for( int j = 0; j < Ad[i].size(); ++j)
| ~~^~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:329:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
329 | for( int i = 0; i < scc.size(); ++i ){
| ~~^~~~~~~~~~~~
main.cpp:330:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
330 | for( int j = 0; j < scc[i].size(); ++j )
| ~~^~~~~~~~~~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 204kb | Numar de componente gresit | 0 | 0 |
2 | 1ms | 184kb | Corect | 10 |
3 | 1ms | 184kb | Numar de componente gresit | 0 |
4 | 11ms | 307kb | Numar de componente gresit | 0 | 0 |
5 | 10ms | 643kb | Numar de componente gresit | 0 |
6 | 23ms | 1224kb | Numar de componente gresit | 0 |
7 | 29ms | 2465kb | Numar de componente gresit | 0 | 0 |
8 | 117ms | 5632kb | Numar de componente gresit | 0 |
9 | 172ms | 13045kb | Numar de componente gresit | 0 |
10 | 220ms | 19652kb | Numar de componente gresit | 0 | 0 |
Punctaj total | 0 |