Borderou de evaluare (job #1261158)

Utilizator valentin50517Vozian Valentin valentin50517 Data 11 noiembrie 2014 23:46:22
Problema Int Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:8:14: error: expected ‘;’ after struct definition } ^ user.cpp: In function ‘int main()’: user.cpp:28:11: error: no match for ‘operator[]’ (operand types are ‘point’ and ‘int’) fin >> A[i].x >> A[i].y; ^ user.cpp:28:21: error: no match for ‘operator[]’ (operand types are ‘point’ and ‘int’) fin >> A[i].x >> A[i].y; ^ user.cpp:30:9: error: no match for ‘operator+’ (operand types are ‘point’ and ‘int’) sort(A + 1, A + n + 1, comp); ^ user.cpp:30:9: note: candidates are: In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /usr/include/c++/4.8/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/include/c++/4.8/bits/stl_iterator.h:333:5: note: template argument deduction/substitution failed: user.cpp:30:11: note: mismatched types ‘const std::reverse_iterator<_Iterator>’ and ‘int’ sort(A + 1, A + n + 1, comp); ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /usr/include/c++/4.8/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/include/c++/4.8/bits/stl_iterator.h:1118:5: note: template argument deduction/substitution failed: user.cpp:30:11: note: mismatched types ‘const std::move_iterator<_Iterator>’ and ‘int’ sort(A + 1, A + n + 1, comp); ^ In file included from /usr/include/c++/4.8/string:52:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /usr/include/c++/4.8/bits/basic_string.h:2365:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::basic_string<_CharT, _Traits, _Alloc>&, const std::basic_string<_CharT, _Traits, _Alloc>&) operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, ^

Ceva nu functioneaza?