Borderou de evaluare (job #2741844)

Utilizator popashtefan10Popa Stefan popashtefan10 Data 19 aprilie 2021 17:04:08
Problema Pisi Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:7:1: error: 'vector' does not name a type vector<int> v[NMAX + 5]; ^~~~~~ main.cpp: In function 'void build_graph(std::vector<int>&, std::vector<int>&, std::vector<int>&)': main.cpp:20:5: error: 'v' was not declared in this scope v[i].clear(); ^ main.cpp:31:9: error: 'v' was not declared in this scope v[i].push_back(j), gr_int[j]++; ^ main.cpp:33:9: error: 'v' was not declared in this scope v[j].push_back(i), gr_int[i]++; ^ main.cpp: At global scope: main.cpp:37:1: error: 'vector' does not name a type vector<int> top_ord; ^~~~~~ main.cpp: In function 'void top_sort()': main.cpp:40:3: error: 'top_ord' was not declared in this scope top_ord.clear(); ^~~~~~~ main.cpp:41:3: error: 'queue' was not declared in this scope queue<int> q; ^~~~~ main.cpp:41:3: note: suggested alternative: In file included from /usr/include/c++/6/queue:64:0, from main.cpp:2: /usr/include/c++/6/bits/stl_queue.h:96:11: note: 'std::queue' class queue ^~~~~ main.cpp:41:9: error: expected primary-expression before 'int' queue<int> q; ^~~ main.cpp:44:7: error: 'q' was not declared in this scope q.push(i); ^ main.cpp:46:10: error: 'q' was not declared in this scope while(!q.empty()) { ^ main.cpp:51:18: error: 'v' was not declared in this scope for(int vec: v[nod]) { ^ main.cpp: In function 'std::vector<int> rank_cats(std::vector<int>, std::vector<int>, std::vector<int>)': main.cpp:67:8: error: 'top_ord' was not declared in this scope if(top_ord.size() < n) ^~~~~~~ main.cpp:69:12: error: 'top_ord' was not declared in this scope return top_ord; ^~~~~~~ main.cpp:72:10: error: 'vector' was not declared in this scope Non zero exit status: 1

Ceva nu functioneaza?