Borderou de evaluare (job #293208)
Utilizator | Data | 1 aprilie 2009 08:05:54 | |
---|---|---|---|
Problema | Zapada | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:46:2: warning: no newline at end of file
user.cpp: In function 'void qsort1(int, int)':
user.cpp:10: error: cannot convert 'std::vector<int, std::allocator<int> >' to 'int' in initialization
user.cpp:13: error: no match for 'operator<' in 'c[i] < mij'
user.cpp:14: error: no match for 'operator>' in 'c[i] > mij'
user.cpp:17: error: cannot convert 'std::vector<int, std::allocator<int> >' to 'int' in assignment
user.cpp:17: error: no match for 'operator=' in 'c[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: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:34: error: no match for 'operator=' in 'c[i] = 1'
/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:37: error: no match for 'operator+=' in 'c[i] += c[it.__gnu_cxx::__normal_iterator<_Iterator, _Container>::operator* [with _Iterator = int*, _Container = std::vector<int, std::allocator<int> >]()]'
user.cpp:39: 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:42: error: no match for 'operator[]' in 'c[b[i]]'
user.cpp:44: warning: cannot pass objects of non-POD type 'class std::vector<int, std::allocator<int> >' through '...'; call will abort at runtime
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !