Borderou de evaluare (job #293206)
Utilizator | Data | 1 aprilie 2009 08:03:04 | |
---|---|---|---|
Problema | Zapada | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:45:2: warning: no newline at end of file
user.cpp: In function 'void qsort(int, int)':
user.cpp:18: error: cannot convert 'std::vector<int, std::allocator<int> >' to 'int' in assignment
user.cpp:18: error: no match for 'operator=' in 'b[j] = aux'
/usr/include/c++/4.2/bits/vector.tcc:132: note: candidates are: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = int, _Alloc = std::allocator<int>]
user.cpp: In function 'int main()':
user.cpp:38: error: no match for 'operator=' in 'b[i] = i'
/usr/include/c++/4.2/bits/vector.tcc:132: note: candidates are: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = int, _Alloc = std::allocator<int>]
user.cpp:41: error: no match for 'operator[]' in 'c[b[i]]'
/usr/include/c++/4.2/bits/stl_vector.h:474: note: candidates are: typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::reference std::vector<_Tp, _Alloc>::operator[](size_t) [with _Tp = int, _Alloc = std::allocator<int>]
/usr/include/c++/4.2/bits/stl_vector.h:489: note: typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::const_reference std::vector<_Tp, _Alloc>::operator[](size_t) const [with _Tp = int, _Alloc = std::allocator<int>]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !