Borderou de evaluare (job #2822257)

Utilizator alexbrinzaAlexandru Brinza alexbrinza Data 23 decembrie 2021 19:10:18
Problema Sortare topologica Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In member function 'int graph::connectedComponents()': main.cpp:93:9: warning: unused variable 'x' [-Wunused-variable] 93 | int x, y, ct = 0; | ^ main.cpp:93:12: warning: unused variable 'y' [-Wunused-variable] 93 | int x, y, ct = 0; | ^ main.cpp: In member function 'void graph::dfs(int, std::vector<int>&)': main.cpp:112:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 112 | for(int i = 0; i < G[node].size(); ++i) | ~~^~~~~~~~~~~~~~~~ main.cpp: In member function 'std::vector<int> graph::minimumDistance(int)': main.cpp:136:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 136 | for(int i = 0; i < G[node].size(); ++i) | ~~^~~~~~~~~~~~~~~~ main.cpp: In member function 'void graph::dfsBiconnected(int, int, std::vector<int>, std::vector<int>, std::vector<int>&, std::vector<std::vector<int> >&, int)': main.cpp:157:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 157 | for(int i = 0; i < G[node].size(); ++i) | ~~^~~~~~~~~~~~~~~~ main.cpp: In member function 'std::vector<std::vector<int> > graph::biconnectedComponents()': main.cpp:202:9: warning: unused variable 'x' [-Wunused-variable] 202 | int x, y, ct; | ^ main.cpp:202:12: warning: unused variable 'y' [-Wunused-variable] 202 | int x, y, ct; | ^ main.cpp: In member function 'void graph::dfsSccDirect(int, std::vector<int>&, std::stack<int>&)': main.cpp:224:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 224 | for(int i = 0; i < G[node].size(); ++i) | ~~^~~~~~~~~~~~~~~~ main.cpp: In member function 'void graph::dfsSccReverse(int, std::vector<int>&, std::vector<std::vector<int> >&, int)': main.cpp:240:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 240 | for(int i = 0; i < reverseG[node].size(); ++i) | ~~^~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'std::vector<std::vector<int> > graph::scc()': main.cpp:263:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 263 | for(int j = 0; j < G[i].size(); ++j) | ~~^~~~~~~~~~~~~ main.cpp:252:9: warning: unused variable 'x' [-Wunused-variable] 252 | int x, y, ct; | ^ main.cpp:252:12: warning: unused variable 'y' [-Wunused-variable] 252 | int x, y, ct; | ^ main.cpp: In member function 'void graph::dfsTopo(int, std::vector<int>&, std::stack<int>&)': main.cpp:291:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 291 | for(int i = 0; i < G[node].size(); ++i) | ~~^~~~~~~~~~~~~~~~ main.cpp: In member function 'std::vector<int> graph::topologicalSort()': main.cpp:305:9: warning: unused variable 'x' [-Wunused-variable]
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms184kbRaspuns gresit0
22ms184kbRaspuns gresit0
32ms184kbRaspuns gresit0
42ms200kbRaspuns gresit0
56ms450kbRaspuns gresit0
616ms1282kbRaspuns gresit0
735ms2777kbRaspuns gresit0
849ms3837kbRaspuns gresit0
9111ms6975kbRaspuns gresit0
10163ms9007kbRaspuns gresit0
Punctaj total0

Ceva nu functioneaza?