Borderou de evaluare (job #581581)
Utilizator | Data | 14 aprilie 2011 12:59:50 | |
---|---|---|---|
Problema | Aimin | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:13: error: 'std::_List_iterator<std::pair<int, int> > link [500000]' redeclared as different kind of symbol
/usr/include/unistd.h:757: error: previous declaration of 'int link(const char*, const char*)'
user.cpp: In function 'int main()':
user.cpp:47: error: pointer to a function used in arithmetic
user.cpp:47: error: assignment of read-only location
user.cpp:47: error: cannot convert 'std::_List_iterator<std::pair<int, int> >' to 'int ()(const char*, const char*)throw ()' in assignment
user.cpp:48: error: pointer to a function used in arithmetic
user.cpp:48: error: ISO C++ forbids decrementing a pointer of type 'int (*)(const char*, const char*)throw ()'
user.cpp:48: error: lvalue required as decrement operand
user.cpp:49: error: pointer to a function used in arithmetic
user.cpp:49: error: request for member 'second' in '*(((int (*)(const char*, const char*)throw ())((unsigned int)id)) + link)', which is of non-class type 'int ()(const char*, const char*)throw ()'
user.cpp:50: error: pointer to a function used in arithmetic
user.cpp:50: error: request for member 'first' in '*(((int (*)(const char*, const char*)throw ())((unsigned int)id)) + link)', which is of non-class type 'int ()(const char*, const char*)throw ()'
user.cpp:71: error: pointer to a function used in arithmetic
user.cpp:71: error: no match for 'operator=' in 'it = *(((int (*)(const char*, const char*)throw ())((unsigned int)nod_id)) + link)'
/usr/include/c++/4.2/bits/stl_list.h:113: note: candidates are: std::_List_iterator<std::pair<int, int> >& std::_List_iterator<std::pair<int, int> >::operator=(const std::_List_iterator<std::pair<int, int> >&)
user.cpp:78: error: pointer to a function used in arithmetic
user.cpp:78: error: assignment of read-only location
user.cpp:78: error: cannot convert 'std::_List_iterator<std::pair<int, int> >' to 'int ()(const char*, const char*)throw ()' in assignment
user.cpp:82: error: pointer to a function used in arithmetic
user.cpp:82: error: no match for 'operator=' in 'it = *(((int (*)(const char*, const char*)throw ())((unsigned int)nod_id)) + link)'
/usr/include/c++/4.2/bits/stl_list.h:113: note: candidates are: std::_List_iterator<std::pair<int, int> >& std::_List_iterator<std::pair<int, int> >::operator=(const std::_List_iterator<std::pair<int, int> >&)
user.cpp:86: error: pointer to a function used in arithmetic
user.cpp:86: error: no match for 'operator=' in 'it = *(((int (*)(const char*, const char*)throw ())((unsigned int)nod_id)) + link)'
/usr/include/c++/4.2/bits/stl_list.h:113: note: candidates are: std::_List_iterator<std::pair<int, int> >& std::_List_iterator<std::pair<int, int> >::operator=(const std::_List_iterator<std::pair<int, int> >&)
user.cpp:98: error: pointer to a function used in arithmetic
user.cpp:98: error: assignment of read-only location
user.cpp:98: error: cannot convert 'std::_List_iterator<std::pair<int, int> >' to 'int ()(const char*, const char*)throw ()' in assignment
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !