Borderou de evaluare (job #1570352)

Utilizator AlexTheDagonBogdan Tudor AlexTheDagon Data 16 ianuarie 2016 13:50:21
Problema Radix Sort Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:10:1: error: ‘v’ was not declared in this scope v[1]=B; ^ user.cpp:18:17: warning: capture of variable ‘j’ with non-automatic storage duration [enabled by default] while(a[j]>[j+1] && j<N) ^ user.cpp:7:25: note: ‘int j’ declared here int N,A,B,C,a[10000000],j,aux; ^ user.cpp:18:18: error: expected ‘,’ before ‘+’ token while(a[j]>[j+1] && j<N) ^ user.cpp:18:18: error: expected identifier before ‘+’ token user.cpp: In lambda function: user.cpp:18:22: error: expected ‘{’ before ‘&&’ token while(a[j]>[j+1] && j<N) ^ user.cpp: In function ‘int main()’: user.cpp:18:15: error: no match for ‘operator>’ (operand types are ‘int’ and ‘main()::__lambda0’) while(a[j]>[j+1] && j<N) ^ user.cpp:18:15: note: candidates are: In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64: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/ostream:38, from /usr/include/c++/4.8/iostream:39, from user.cpp:1: /usr/include/c++/4.8/bits/stl_pair.h:233:5: note: template<class _T1, class _T2> constexpr bool std::operator>(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&) operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) ^ /usr/include/c++/4.8/bits/stl_pair.h:233:5: note: template argument deduction/substitution failed: user.cpp:18:22: note: mismatched types ‘const std::pair<_T1, _T2>’ and ‘int’ while(a[j]>[j+1] && j<N) ^ 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/ostream:38, from /usr/include/c++/4.8/iostream:39, from user.cpp:1: /usr/include/c++/4.8/bits/stl_iterator.h:309:5: note: template<class _Iterator> bool std::operator>(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&) operator>(const reverse_iterator<_Iterator>& __x, ^ /usr/include/c++/4.8/bits/stl_iterator.h:309:5: note: template argument deduction/substitution failed: user.cpp:18:22: note: mismatched types ‘const std::reverse_iterator<_Iterator>’ and ‘int’ while(a[j]>[j+1] && j<N) ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0,

Ceva nu functioneaza?