Borderou de evaluare (job #2192396)

Utilizator ScarymovieMocanu Alexandru Scarymovie Data 5 aprilie 2018 21:14:51
Problema Abc2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:8:29: error: ‘int index’ redeclared as different kind of symbol int n,i,j,l,cod,potriviri,h,index; ^~~~~ In file included from /usr/include/c++/6/cstring:42:0, from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:48, from user.cpp:2: /usr/include/string.h:477:1: note: previous declaration ‘const char* index(const char*, int)’ index (const char *__s, int __c) __THROW ^~~~~ user.cpp: In function ‘int main()’: user.cpp:29:19: error: overloaded function with no contextual type information index=cod%prim; ^~~~ user.cpp:30:48: error: invalid types ‘std::vector<int> [100003][<unresolved overloaded function type>]’ for array subscript for(unsigned int j=0; j<hashTable[index].size(); ++j) ^ user.cpp:32:31: error: invalid types ‘std::vector<int> [100003][<unresolved overloaded function type>]’ for array subscript if(hashTable[index][j]==cod) ^ user.cpp:41:15: error: overloaded function with no contextual type information index=cod%prim; ^~~~ user.cpp:42:44: error: invalid types ‘std::vector<int> [100003][<unresolved overloaded function type>]’ for array subscript for(unsigned int j=0; j<hashTable[index].size(); ++j) ^ user.cpp:44:27: error: invalid types ‘std::vector<int> [100003][<unresolved overloaded function type>]’ for array subscript if(hashTable[index][j]==cod) ^

Ceva nu functioneaza?