Borderou de evaluare (job #970000)

Utilizator superman_01Avramescu Cristian superman_01 Data 5 iulie 2013 20:38:03
Problema Muzica Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘std::vector<long long int>::iterator Find(long long int, int)’: user.cpp:24:39: error: no match for ‘operator[]’ (operand types are ‘std::unordered_set<long long int>’ and ‘int’) for(vector<LL>::iterator it = HASH[key].begin() ; it != HASH[key].end() ; ++it ) ^ user.cpp:24:66: error: no match for ‘operator[]’ (operand types are ‘std::unordered_set<long long int>’ and ‘int’) for(vector<LL>::iterator it = HASH[key].begin() ; it != HASH[key].end() ; ++it ) ^ user.cpp:27:16: error: no match for ‘operator[]’ (operand types are ‘std::unordered_set<long long int>’ and ‘int’) return HASH[key].end(); ^ user.cpp: In function ‘void Add(int)’: user.cpp:33:35: error: no match for ‘operator[]’ (operand types are ‘std::unordered_set<long long int>’ and ‘int’) if( Find(value , key ) == HASH[key].end() ) ^ user.cpp:34:11: error: no match for ‘operator[]’ (operand types are ‘std::unordered_set<long long int>’ and ‘int’) HASH[key].push_back(value); ^ user.cpp: In function ‘bool Del(long long int)’: user.cpp:42:19: error: no match for ‘operator[]’ (operand types are ‘std::unordered_set<long long int>’ and ‘int’) if( it != HASH[key].end() ) ^ user.cpp:45:17: error: no match for ‘operator[]’ (operand types are ‘std::unordered_set<long long int>’ and ‘int’) HASH[key].erase(it); ^ user.cpp: In function ‘std::vector<long long int>::iterator Find(long long int, int)’: user.cpp:28:1: warning: control reaches end of non-void function [-Wreturn-type] } ^

Ceva nu functioneaza?