Borderou de evaluare (job #2650237)
Utilizator | Data | 17 septembrie 2020 19:59:26 | |
---|---|---|---|
Problema | Secv | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:54:3: error: 'vector' does not name a type
vector<pair<int, int>> hash_map[MODULO];
^~~~~~
main.cpp: In member function 'void HashMap::add(int, int)':
main.cpp:21:7: error: 'hash_map' was not declared in this scope
hash_map[pos.first].push_back(make_pair(key, value));
^~~~~~~~
main.cpp:25:7: error: 'hash_map' was not declared in this scope
hash_map[pos.first][pos.second].second = value;
^~~~~~~~
main.cpp: In member function 'void HashMap::remove(int)':
main.cpp:35:5: error: 'hash_map' was not declared in this scope
hash_map[pos.first][pos.second] = hash_map[pos.first][hash_map[pos.first].size() - 1];
^~~~~~~~
main.cpp: In member function 'int HashMap::get(int)':
main.cpp:49:14: error: 'hash_map' was not declared in this scope
return hash_map[pos.first][pos.second].second;
^~~~~~~~
main.cpp: In member function 'std::pair<int, int> HashMap::m_find(int)':
main.cpp:60:25: error: 'hash_map' was not declared in this scope
for (int i = 0; i < hash_map[hashed_key].size(); i++)
^~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !