Borderou de evaluare (job #1171226)
Utilizator | Data | 15 aprilie 2014 13:44:26 | |
---|---|---|---|
Problema | Hashuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void add(hash_t&, int)’:
user.cpp:14:6: warning: unused variable ‘bucket’ [-Wunused-variable]
int bucket = hash_f(n);
^
user.cpp: In function ‘void remove(hash_t&, int)’:
user.cpp:20:14: error: expected ‘;’ before ‘hash’
for (auto i hash) {
^
user.cpp:20:14: error: could not convert ‘hash’ from ‘hash_t {aka std::vector<std::list<int> >}’ to ‘bool’
user.cpp:20:18: error: expected ‘;’ before ‘)’ token
for (auto i hash) {
^
user.cpp:21:7: error: use of ‘i’ before deduction of ‘auto’
if (i == n) {
^
user.cpp:22:4: error: use of ‘i’ before deduction of ‘auto’
i = -1;
^
user.cpp:19:6: warning: unused variable ‘bucket’ [-Wunused-variable]
int bucket = hash_f(n);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !