Borderou de evaluare (job #2820070)

Utilizator Teo_1101Mititelu Teodor Teo_1101 Data 19 decembrie 2021 20:34:25
Problema Ciclu Eulerian Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:64:28: warning: integer overflow in expression of type 'int' results in '2147483647' [-Woverflow] 64 | const int INF = (1<<31)-1; | ~~~~~~~^~ main.cpp: In constructor 'graph::graph(int, int, std::vector<std::vector<int> >&)': main.cpp:80:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 80 | 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:88:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 88 | for( int j = 0; j < ad[i].size(); ++j){ | ~~^~~~~~~~~~~~~~ main.cpp: At global scope: main.cpp:111:62: error: 'INT_MAX' was not declared in this scope 111 | void graph::addEdge(int x, int y, bool oriented, int value = INT_MAX ){ | ^~~~~~~ main.cpp:8:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? 7 | #include <unordered_map> +++ |+#include <climits> 8 | main.cpp: In member function 'void graph::addEdge(int, int, bool, int)': main.cpp:113:18: error: 'INT_MAX' was not declared in this scope 113 | if( value != INT_MAX ) | ^~~~~~~ main.cpp:113:18: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? main.cpp:117:22: error: 'INT_MAX' was not declared in this scope 117 | if( value != INT_MAX ) | ^~~~~~~ main.cpp:117:22: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? main.cpp: In member function 'void graph::DFS(int, bool*)': main.cpp:124:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 124 | for( int i = 0; i < Ad[nod].size(); ++i ){ | ~~^~~~~~~~~~~~~~~~ main.cpp: In member function 'void graph::DFSr(int, std::vector<bool>&, std::vector<std::vector<int> >&, std::vector<int>&)': main.cpp:132:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 132 | for( int i = 0; i < ad[nod].size(); ++i ){ | ~~^~~~~~~~~~~~~~~~ main.cpp: In member function 'void graph::BFS(int)': main.cpp:149:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 149 | for( int i = 0; i < Ad[x].size(); ++i ){ | ~~^~~~~~~~~~~~~~ main.cpp: In member function 'void graph::Kruskal()': main.cpp:187:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 187 | for( int j = 0; j < Ad[i].size(); ++j ){ | ~~^~~~~~~~~~~~~~ main.cpp:209: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] 209 | for( int i = 0; i < Sol.size(); ++i ) | ~~^~~~~~~~~~~~ main.cpp: In member function 'void graph::Dijkstra(int)': main.cpp:226:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 226 | for( int i = 0; i < Ad[nod].size(); ++i ){ Non zero exit status: 1

Ceva nu functioneaza?