Borderou de evaluare (job #2932128)

Utilizator cadmium_Voicu Mihai-Valeriu cadmium_ Data 1 noiembrie 2022 22:33:53
Problema Jolteon Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:32:44: error: array bound is not an integer constant before ']' token 32 | unordered_map<int,short> freq[nmax / buck]; | ^ main.cpp: In member function 'int Jolteon::Bucket::add()': main.cpp:36:17: error: 'freq' was not declared in this scope; did you mean 'free'? 36 | int add() { freq[ptr][globaloffset ^ localoffset]++; return globaloffset ^ localoffset;} | ^~~~ | free main.cpp: In member function 'int Jolteon::Bucket::query()': main.cpp:38:17: error: 'freq' was not declared in this scope; did you mean 'free'? 38 | int rez = freq[ptr][globaloffset ^ localoffset]; | ^~~~ | free main.cpp: In function 'void Jolteon::set(int, int)': main.cpp:49:5: error: 'freq' was not declared in this scope; did you mean 'free'? 49 | freq[atr(x)][elem[x]]--; | ^~~~ | free Non zero exit status: 1

Ceva nu functioneaza?