Borderou de evaluare (job #2665938)

Utilizator paulconst1Constantinescu Paul paulconst1 Data 31 octombrie 2020 15:08:43
Problema Parcurgere DFS - componente conexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:8:1: error: expected unqualified-id before numeric constant 120 ^~~ main.cpp:10:11: error: 'MAXN' was not declared in this scope bool vis [MAXN + 1]; ^~~~ main.cpp:11:18: error: 'MAXN' was not declared in this scope vector <int> adj[MAXN + 1]; ^~~~ main.cpp: In function 'void dfs(int)': main.cpp:15:5: error: 'vis' was not declared in this scope vis[currNode] = true; ^~~ main.cpp:16:19: error: 'adj' was not declared in this scope for (int nbh: adj[currNode]) ^~~ main.cpp: In function 'int main()': main.cpp:30:9: error: 'adj' was not declared in this scope adj[x].push_back(y); ^~~ main.cpp:37:14: error: 'vis' was not declared in this scope if (!vis[i]) ^~~ Non zero exit status: 1

Ceva nu functioneaza?