Borderou de evaluare (job #2333761)

Utilizator akaprosAna Kapros akapros Data 1 februarie 2019 21:58:25
Problema Iepuri2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:12:1: error: 'vector' does not name a type vector < int > sons[maxN]; ^~~~~~ main.cpp: In function 'void dfs(int, int)': main.cpp:19:9: error: 'sons' was not declared in this scope if (sons[nod].empty()) ^~~~ main.cpp:28:25: error: 'sons' was not declared in this scope for (int i = 0; i < sons[nod].size(); ++ i) ^~~~ main.cpp:40:33: error: 'sons' was not declared in this scope for (int j = 0; j < sons[nod].size(); ++ j) ^~~~ main.cpp: In function 'int main()': main.cpp:63:9: error: 'sons' was not declared in this scope sons[u].push_back(v); ^~~~ main.cpp:55:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &n, &k); ^ main.cpp:59:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &u, &v); ^ Non zero exit status: 1

Ceva nu functioneaza?