Borderou de evaluare (job #899306)
Utilizator | Data | 28 februarie 2013 13:52:11 | |
---|---|---|---|
Problema | Energii | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:19: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
user.cpp:21: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
user.cpp: In function ‘void knapsack()’:
user.cpp:37: error: no match for ‘operator+’ in ‘gen.std::vector<_Tp, _Alloc>::operator[] [with _Tp = std::pair<int, int>, _Alloc = std::allocator<std::pair<int, int> >](((unsigned int)i)) + D.std::vector<_Tp, _Alloc>::operator[] [with _Tp = long int, _Alloc = std::allocator<long int>]((((unsigned int)cw) - ((unsigned int)gen.std::vector<_Tp, _Alloc>::operator[] [with _Tp = std::pair<int, int>, _Alloc = std::allocator<std::pair<int, int> >](((unsigned int)i))->std::pair<int, int>::first)))’
/usr/include/c++/4.4/bits/stl_bvector.h:264: note: candidates are: std::_Bit_iterator std::operator+(ptrdiff_t, const std::_Bit_iterator&)
/usr/include/c++/4.4/bits/stl_bvector.h:350: note: std::_Bit_const_iterator std::operator+(ptrdiff_t, const std::_Bit_const_iterator&)
user.cpp:38: error: ‘v’ was not declared in this scope
user.cpp:38: error: no match for ‘operator-’ in ‘cw - gen.std::vector<_Tp, _Alloc>::operator[] [with _Tp = std::pair<int, int>, _Alloc = std::allocator<std::pair<int, int> >](((unsigned int)i))’
/usr/include/c++/4.4/bits/stl_bvector.h:179: note: candidates are: ptrdiff_t std::operator-(const std::_Bit_iterator_base&, const std::_Bit_iterator_base&)
user.cpp:42: error: return-statement with a value, in function returning 'void'
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !