Borderou de evaluare (job #3121253)
Utilizator | Data | 11 aprilie 2023 12:53:06 | |
---|---|---|---|
Problema | Secventa 5 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:20:33: error: expected ']' before ';' token
20 | int head[MOD_MAX;
| ^
| ]
main.cpp: In constructor 'HashTable::HashTable(int)':
main.cpp:32:33: error: 'head' was not declared in this scope
32 | head[i] = NIL;
| ^~~~
main.cpp: In member function 'void HashTable::init(int)':
main.cpp:42:33: error: 'head' was not declared in this scope
42 | head[i] = NIL;
| ^~~~
main.cpp: In member function 'int HashTable::add(unsigned int)':
main.cpp:55:34: error: 'head' was not declared in this scope
55 | int it = head[list];
| ^~~~
main.cpp: In member function 'bool HashTable::find(unsigned int)':
main.cpp:75:34: error: 'head' was not declared in this scope
75 | int it = head[list];
| ^~~~
main.cpp: In member function 'int HashTable::erase(unsigned int)':
main.cpp:84:35: error: 'head' was not declared in this scope
84 | int ant = head[list], it = nxt[ant];
| ^~~~
main.cpp:93:39: error: 'it' was not declared in this scope; did you mean 'int'?
93 | while(it != NIL && key[it].num != x){
| ^~
| int
main.cpp:98:36: error: 'it' was not declared in this scope; did you mean 'int'?
98 | if(it != NIL){
| ^~
| int
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !