Borderou de evaluare (job #941017)

Utilizator kassay_akosKassay Akos kassay_akos Data 17 aprilie 2013 19:06:31
Problema Biti Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:18: error: ‘int index’ redeclared as different kind of symbol /usr/include/string.h:480: error: previous declaration of ‘const char* index(const char*, int)’ user.cpp: In function ‘bool rezolvare()’: user.cpp:24: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator<<’ user.cpp:25: error: no match for ‘operator[]’ in ‘mybits[index]’ /usr/include/c++/4.4/bitset:1004: note: candidates are: std::bitset<_Nb>::reference std::bitset<_Nb>::operator[](size_t) [with unsigned int _Nb = 1048577u] /usr/include/c++/4.4/bitset:1008: note: bool std::bitset<_Nb>::operator[](size_t) const [with unsigned int _Nb = 1048577u] user.cpp:26: error: no matching function for call to ‘std::bitset<1048577u>::set(<unresolved overloaded function type>)’ /usr/include/c++/4.4/bitset:913: note: candidates are: std::bitset<_Nb>& std::bitset<_Nb>::set() [with unsigned int _Nb = 1048577u] /usr/include/c++/4.4/bitset:927: note: std::bitset<_Nb>& std::bitset<_Nb>::set(size_t, bool) [with unsigned int _Nb = 1048577u] user.cpp:34: error: no matching function for call to ‘std::bitset<1048577u>::reset(<unresolved overloaded function type>)’ /usr/include/c++/4.4/bitset:938: note: candidates are: std::bitset<_Nb>& std::bitset<_Nb>::reset() [with unsigned int _Nb = 1048577u] /usr/include/c++/4.4/bitset:952: note: std::bitset<_Nb>& std::bitset<_Nb>::reset(size_t) [with unsigned int _Nb = 1048577u] user.cpp:35: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator+’ user.cpp:36: error: no match for ‘operator[]’ in ‘mybits[index]’ /usr/include/c++/4.4/bitset:1004: note: candidates are: std::bitset<_Nb>::reference std::bitset<_Nb>::operator[](size_t) [with unsigned int _Nb = 1048577u] /usr/include/c++/4.4/bitset:1008: note: bool std::bitset<_Nb>::operator[](size_t) const [with unsigned int _Nb = 1048577u] user.cpp:37: error: no matching function for call to ‘std::bitset<1048577u>::set(<unresolved overloaded function type>)’ /usr/include/c++/4.4/bitset:913: note: candidates are: std::bitset<_Nb>& std::bitset<_Nb>::set() [with unsigned int _Nb = 1048577u] /usr/include/c++/4.4/bitset:927: note: std::bitset<_Nb>& std::bitset<_Nb>::set(size_t, bool) [with unsigned int _Nb = 1048577u] user.cpp:42: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator+’ user.cpp:47: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator+’ user.cpp:53: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator+’ user.cpp:54: error: no match for ‘operator[]’ in ‘mybits[index]’ /usr/include/c++/4.4/bitset:1004: note: candidates are: std::bitset<_Nb>::reference std::bitset<_Nb>::operator[](size_t) [with unsigned int _Nb = 1048577u] /usr/include/c++/4.4/bitset:1008: note: bool std::bitset<_Nb>::operator[](size_t) const [with unsigned int _Nb = 1048577u] user.cpp:55: error: no matching function for call to ‘std::bitset<1048577u>::set(<unresolved overloaded function type>)’ /usr/include/c++/4.4/bitset:913: note: candidates are: std::bitset<_Nb>& std::bitset<_Nb>::set() [with unsigned int _Nb = 1048577u] /usr/include/c++/4.4/bitset:927: note: std::bitset<_Nb>& std::bitset<_Nb>::set(size_t, bool) [with unsigned int _Nb = 1048577u] user.cpp:60: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator+’ user.cpp:64: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator+’ user.cpp: In function ‘int main()’: user.cpp:72: error: ‘pow’ was not declared in this scope user.cpp:76: error: overloaded function with no contextual type information

Ceva nu functioneaza?