Borderou de evaluare (job #2930003)

Utilizator BojneaguBojneagu David-Alexandru Bojneagu Data 27 octombrie 2022 12:04:34
Problema Componente tare conexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:6:1: error: expected ',' or ';' before 'vector' 6 | vector<vector<int>> adj; | ^~~~~~ main.cpp: In function 'void first_DFS(int)': main.cpp:17:20: error: 'adj' was not declared in this scope; did you mean 'adj_t'? 17 | for (auto it : adj[node]) | ^~~ | adj_t main.cpp: In function 'int main()': main.cpp:41:5: error: 'adj' was not declared in this scope; did you mean 'adj_t'? 41 | adj.resize(nrn + 1); | ^~~ | adj_t main.cpp:71:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 71 | for (int j = 0; j < res[i].size(); j++) | ~~^~~~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?