Borderou de evaluare (job #2679127)

Utilizator rares404AlShaytan - Balasescu Rares rares404 Data 29 noiembrie 2020 17:50:16
Problema Parb Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:24:1: error: 'vector' does not name a type vector<int> depthList[kMaxN]; ^~~~~~ main.cpp:25:1: error: 'vector' does not name a type vector<int> finalCandidates; ^~~~~~ main.cpp: In function 'void dfsDepths(int)': main.cpp:35:2: error: 'depthList' was not declared in this scope depthList[Depth[u]].push_back(u); ^~~~~~~~~ main.cpp: In function 'void getOrder()': main.cpp:48:20: error: 'depthList' was not declared in this scope for(const int u: depthList[i]) { ^~~~~~~~~ main.cpp:57:14: error: 'depthList' was not declared in this scope sort(begin(depthList[i]), end(depthList[i]), [] (const int x, const int y) { return (Symbol[x] == Symbol[y] ? Order[prefSon[x]] < Order[prefSon[y]] : Symbol[x] > Symbol[y]); }); ^~~~~~~~~ main.cpp: In function 'void separateChains()': main.cpp:77:20: error: 'depthList' was not declared in this scope for(const int u: depthList[i]) { ^~~~~~~~~ main.cpp:87:5: error: 'finalCandidates' was not declared in this scope finalCandidates.push_back(x); ^~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:98:17: error: 'gets' was not declared in this scope gets(Symbol + 1); ^ main.cpp:112:9: error: 'finalCandidates' was not declared in this scope while(!finalCandidates.empty()) { ^~~~~~~~~~~~~~~ main.cpp:114:20: error: unable to deduce 'auto&&' from 'finalCandidates' for(const int u: finalCandidates) bestChar = max(bestChar, Symbol[u]); ^~~~~~~~~~~~~~~ main.cpp:94:32: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("parb.in", "r", stdin); ^ main.cpp:95:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("parb.out", "w", stdout); ^ main.cpp:97:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &N); ^ main.cpp:101:25: 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?