Borderou de evaluare (job #1059570)
Utilizator | Data | 16 decembrie 2013 19:50:41 | |
---|---|---|---|
Problema | Imunitate | Status | done |
Runda | Arhiva ICPC | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int back(std::list<int>&, int, std::vector<std::vector<int> >&)’:
user.cpp:25:21: error: no match for ‘operator[]’ (operand types are ‘std::list<int>’ and ‘int’)
if (degree[L[i]] <= (N-1) / 2) {
^
user.cpp:29:40: error: no match for ‘operator[]’ (operand types are ‘std::list<int>’ and ‘int’)
int next_conf = conf ^ (1 << (L[i]));
^
user.cpp:32:21: error: no match for ‘operator[]’ (operand types are ‘std::list<int>’ and ‘int’)
degree[L[j]] -= (adj[L[i]][L[j]] == 1);
^
user.cpp:32:35: error: no match for ‘operator[]’ (operand types are ‘std::list<int>’ and ‘int’)
degree[L[j]] -= (adj[L[i]][L[j]] == 1);
^
user.cpp:32:41: error: no match for ‘operator[]’ (operand types are ‘std::list<int>’ and ‘int’)
degree[L[j]] -= (adj[L[i]][L[j]] == 1);
^
user.cpp:34:48: error: no match for ‘operator+’ (operand types are ‘std::list<int>::iterator {aka std::_List_iterator<int>}’ and ‘int’)
list <int> :: iterator it = (L.begin() + i);
^
user.cpp:34:48: note: candidates are:
In file included from /usr/local/include/c++/4.8.0/bits/stl_algobase.h:67:0,
from /usr/local/include/c++/4.8.0/vector:60,
from user.cpp:2:
/usr/local/include/c++/4.8.0/bits/stl_iterator.h:333:5: note: template<class _Iterator> std::reverse_iterator<_Iterator> std::operator+(typename std::reverse_iterator<_Iterator>::difference_type, const std::reverse_iterator<_Iterator>&)
operator+(typename reverse_iterator<_Iterator>::difference_type __n,
^
/usr/local/include/c++/4.8.0/bits/stl_iterator.h:333:5: note: template argument deduction/substitution failed:
user.cpp:34:50: note: mismatched types ‘const std::reverse_iterator<_Iterator>’ and ‘int’
list <int> :: iterator it = (L.begin() + i);
^
In file included from /usr/local/include/c++/4.8.0/bits/stl_algobase.h:67:0,
from /usr/local/include/c++/4.8.0/vector:60,
from user.cpp:2:
/usr/local/include/c++/4.8.0/bits/stl_iterator.h:1118:5: note: template<class _Iterator> std::move_iterator<_Iterator> std::operator+(typename std::move_iterator<_Iterator>::difference_type, const std::move_iterator<_Iterator>&)
operator+(typename move_iterator<_Iterator>::difference_type __n,
^
/usr/local/include/c++/4.8.0/bits/stl_iterator.h:1118:5: note: template argument deduction/substitution failed:
user.cpp:34:50: note: mismatched types ‘const std::move_iterator<_Iterator>’ and ‘int’
list <int> :: iterator it = (L.begin() + i);
^
In file included from /usr/local/include/c++/4.8.0/vector:65:0,
from user.cpp:2:
/usr/local/include/c++/4.8.0/bits/stl_bvector.h:293:3: note: std::_Bit_iterator std::operator+(std::ptrdiff_t, const std::_Bit_iterator&)
operator+(ptrdiff_t __n, const _Bit_iterator& __x)
^
/usr/local/include/c++/4.8.0/bits/stl_bvector.h:293:3: note: no known conversion for argument 1 from ‘std::list<int>::iterator {aka std::_List_iterator<int>}’ to ‘std::ptrdiff_t {aka int}’
/usr/local/include/c++/4.8.0/bits/stl_bvector.h:379:3: note: std::_Bit_const_iterator std::operator+(std::ptrdiff_t, const std::_Bit_const_iterator&)
operator+(ptrdiff_t __n, const _Bit_const_iterator& __x)
^
/usr/local/include/c++/4.8.0/bits/stl_bvector.h:379:3: note: no known conversion for argument 1 from ‘std::list<int>::iterator {aka std::_List_iterator<int>}’ to ‘std::ptrdiff_t {aka int}’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !