Pagini recente » Borderou de evaluare (job #1713427) | Borderou de evaluare (job #1720739) | Borderou de evaluare (job #2985027) | Borderou de evaluare (job #1852847) | Borderou de evaluare (job #2818810)
Borderou de evaluare (job #2818810)
Raport evaluator
Compilare:
main.cpp: In member function 'virtual void Unoriented_graph::DFS(int, std::vector<int>&)':
main.cpp:107:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
107 | for(int i = 0; i < this->m_adjancency_list[node].size(); i++){
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void Unoriented_graph::DFSBiconnected(int, int, int, std::vector<int>&, std::vector<int>&, std::vector<std::unordered_set<int> >&, std::stack<std::pair<int, int> >&)':
main.cpp:190:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
190 | for(int i = 0; i < this->m_adjancency_list[current_node].size(); i++){
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void Unoriented_graph::DFSCriticals(int, int&, std::vector<int>&, std::vector<int>&, std::vector<int>&, std::vector<int>&, std::vector<std::vector<int> >&)':
main.cpp:259:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
259 | for(int i = 0; i < m_adjancency_list[current_node].size(); i++){
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'virtual std::vector<int> Oriented_graph::BFS(int)':
main.cpp:399:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
399 | for(int i=0; i < this->m_adjancency_list[curent].size(); i++){
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void Oriented_graph::tarjan(int, std::stack<int>&, std::vector<int>&, std::vector<int>&, int&, std::vector<int>&, std::vector<std::vector<int> >&)':
main.cpp:469:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
469 | for(int i=0; i<this->m_adjancency_list[node].size(); i++){
| ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void Oriented_graph::DFS_topological_sort(int, std::stack<int>&, std::vector<int>&)':
main.cpp:539:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
539 | for(int i = 0; i < this->m_adjancency_list[node].size(); i++){
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'std::vector<std::pair<int, int> > Unoriented_graph_with_costs::prim(int&)':
main.cpp:638:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
638 | for(int j = 0; j < this->m_adjancency_list[rad].size(); j++){
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void Unoriented_graph_with_costs::introduce_in_APM(int, std::vector<int>&, std::vector<int>&)':
main.cpp:656:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
656 | for(int i = 0; i < this->m_adjancency_list[node].size(); i++){
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void Unoriented_graph_with_costs::push(int, std::vector<int>&, std::vector<int>&, std::vector<int>&)':
main.cpp:706:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
706 | while((index * 2 <= heap.size() - 1 && distances[heap[index]] > distances[heap[index * 2]]) ||
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~
main.cpp:707:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
707 | (index * 2 + 1 <= heap.size() - 1 && distances[heap[index]] > distances[heap[index * 2 + 1]])){
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
main.cpp:709:89: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
709 | if(distances[heap[index * 2]] < distances[heap[index * 2 + 1]] || index * 2 + 1 > heap.size() - 1){
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:871:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
871 | g.read_graph("../apm.in");
| ^~~~~~~~~~~
main.cpp:880:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
880 | for(int i = 0; i < apm.size() - 1; i++){
| ~~^~~~~~~~~~~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 184kb | Solutia nu e afisata in format corect! | 0 |
2 | 2ms | 184kb | Solutia nu e afisata in format corect! | 0 |
3 | 2ms | 262kb | Cost incorect | 0 |
4 | 2ms | 184kb | Cost incorect | 0 |
5 | 2ms | 184kb | Cost incorect | 0 |
6 | 119ms | 65556kb | Memory limit exceeded | 0 |
7 | 120ms | 65552kb | Memory limit exceeded | 0 |
8 | 120ms | 65552kb | Memory limit exceeded | 0 |
9 | 132ms | 29859kb | Cost incorect | 0 |
10 | 120ms | 65552kb | Memory limit exceeded | 0 |
Punctaj total | 0 |