Borderou de evaluare (job #2908459)

Utilizator David0911David Teregovan David0911 Data 3 iunie 2022 17:11:26
Problema Hashuri Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:7: error: 'MOD' does not name a type 5 | const MOD = 666017; | ^~~ main.cpp:6:17: error: 'MOD' was not declared in this scope 6 | vector<int>Hash[MOD + 2]; | ^~~ main.cpp: In function 'int find_elem(int)': main.cpp:11:26: error: 'MOD' was not declared in this scope 11 | int bucket = a % MOD; | ^~~ main.cpp:12:28: error: 'Hash' was not declared in this scope 12 | for(int i = 0; i < Hash[bucket].size(); i++) | ^~~~ main.cpp: In function 'void insert_elem(int)': main.cpp:22:22: error: 'MOD' was not declared in this scope 22 | int bucket = a % MOD; | ^~~ main.cpp:24:9: error: 'Hash' was not declared in this scope 24 | Hash[bucket].push_back(a); | ^~~~ main.cpp: In function 'void delete_elem(int)': main.cpp:29:22: error: 'MOD' was not declared in this scope 29 | int bucket = a % MOD; | ^~~ main.cpp:33:9: error: 'Hash' was not declared in this scope 33 | Hash[bucket].erase(Hash[bucket].begin() + pos); | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?