Borderou de evaluare (job #1081026)

Utilizator CosminRusuCosmin Rusu CosminRusu Data 13 ianuarie 2014 08:30:40
Problema Facebook Search Status done
Runda Arhiva ICPC Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:37:19: error: ‘std::map<std::basic_string<char>, int> index’ redeclared as different kind of symbol map <string, int> index; ^ In file included from user.cpp:4:0: /usr/include/string.h:480:1: error: previous declaration of ‘const char* index(const char*, int)’ index (__const char *__s, int __c) __THROW ^ user.cpp: In function ‘int main()’: user.cpp:79:18: error: no match for ‘operator[]’ (operand types are ‘<unresolved overloaded function type>’ and ‘std::string {aka std::basic_string<char>}’) index[s] = i; ^ user.cpp:94:32: error: no match for ‘operator[]’ (operand types are ‘<unresolved overloaded function type>’ and ‘std::string {aka std::basic_string<char>}’) relevance[index[s]] += nr; ^ user.cpp:95:51: error: no match for ‘operator[]’ (operand types are ‘<unresolved overloaded function type>’ and ‘std::string {aka std::basic_string<char>}’) Insert(Root, s, 0, s.size(), index[s]); ^

Ceva nu functioneaza?