Borderou de evaluare (job #3177662)

Utilizator vladutzu_finutzuVlad Cacenschi vladutzu_finutzu Data 29 noiembrie 2023 18:04:36
Problema 3max 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 7 | vector<long long> s, maxDr, maxSt; | ^~~~~~ main.cpp:11:1: error: 'vector' does not name a type 11 | vector<Node> aint(4 * NMAX); | ^~~~~~ main.cpp: In function 'void build(int, int, int)': main.cpp:14:18: error: 's' was not declared in this scope 14 | int v1 = s[l] + maxDr[l + 1]; | ^ main.cpp:14:25: error: 'maxDr' was not declared in this scope 14 | int v1 = s[l] + maxDr[l + 1]; | ^~~~~ main.cpp:15:18: error: 'maxSt' was not declared in this scope 15 | int v2 = maxSt[l - 1] - s[l-1]; | ^~~~~ main.cpp:16:9: error: 'aint' was not declared in this scope; did you mean 'uint'? 16 | aint[nod] = {v1 + v2, v1, v2}; | ^~~~ | uint main.cpp:24:25: error: 'aint' was not declared in this scope; did you mean 'uint'? 24 | long long sol = max(aint[2 * nod].sol, max(aint[2 * nod + 1].sol, aint[2 * nod].maxV2 + aint[2 * nod + 1].maxV1)); | ^~~~ | uint main.cpp: In function 'Node query(int, int, int, int, int)': main.cpp:37:16: error: 'aint' was not declared in this scope; did you mean 'uint'? 37 | return aint[nod]; | ^~~~ | uint main.cpp: In function 'int main()': main.cpp:65:5: error: 's' was not declared in this scope 65 | s.resize(n + 5); | ^ main.cpp:66:5: error: 'maxSt' was not declared in this scope 66 | maxSt.resize(n + 5); | ^~~~~ main.cpp:67:5: error: 'maxDr' was not declared in this scope 67 | maxDr.resize(n + 5); | ^~~~~ Non zero exit status: 1

Ceva nu functioneaza?