Borderou de evaluare (job #1380992)

Utilizator alex_HarryBabalau Alexandru alex_Harry Data 8 martie 2015 11:19:06
Problema TwoSets Status done
Runda Algoritmiada 2015 - Runda 2, Seniori Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘bool Find(int*)’: user.cpp:104:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<V.size();i++) ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/c++allocator.h:33:0, from /usr/include/c++/4.8/bits/allocator.h:46, from /usr/include/c++/4.8/string:41, 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/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = int [1000005]; _Args = {const int (&)[1000005]}; _Tp = int [1000005]]’: /usr/include/c++/4.8/bits/alloc_traits.h:254:4: required from ‘static typename std::enable_if<std::allocator_traits<_Alloc>::__construct_helper<_Tp, _Args>::value, void>::type std::allocator_traits<_Alloc>::_S_construct(_Alloc&, _Tp*, _Args&& ...) [with _Tp = int [1000005]; _Args = {const int (&)[1000005]}; _Alloc = std::allocator<int [1000005]>; typename std::enable_if<std::allocator_traits<_Alloc>::__construct_helper<_Tp, _Args>::value, void>::type = void]’ /usr/include/c++/4.8/bits/alloc_traits.h:393:57: required from ‘static decltype (_S_construct(__a, __p, (forward<_Args>)(std::allocator_traits::construct::__args)...)) std::allocator_traits<_Alloc>::construct(_Alloc&, _Tp*, _Args&& ...) [with _Tp = int [1000005]; _Args = {const int (&)[1000005]}; _Alloc = std::allocator<int [1000005]>; decltype (_S_construct(__a, __p, (forward<_Args>)(std::allocator_traits::construct::__args)...)) = <type error>]’ /usr/include/c++/4.8/bits/stl_vector.h:906:34: required from ‘void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int [1000005]; _Alloc = std::allocator<int [1000005]>; std::vector<_Tp, _Alloc>::value_type = int [1000005]]’ user.cpp:74:31: required from here /usr/include/c++/4.8/ext/new_allocator.h:120:4: error: parenthesized initializer in array new [-fpermissive] { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); } ^ /usr/include/c++/4.8/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::destroy(_Up*) [with _Up = int [1000005]; _Tp = int [1000005]]’: /usr/include/c++/4.8/bits/alloc_traits.h:281:4: required from ‘static typename std::enable_if<std::allocator_traits<_Alloc>::__destroy_helper<_Tp>::value, void>::type std::allocator_traits<_Alloc>::_S_destroy(_Alloc&, _Tp*) [with _Tp = int [1000005]; _Alloc = std::allocator<int [1000005]>; typename std::enable_if<std::allocator_traits<_Alloc>::__destroy_helper<_Tp>::value, void>::type = void]’ /usr/include/c++/4.8/bits/alloc_traits.h:405:23: required from ‘static void std::allocator_traits<_Alloc>::destroy(_Alloc&, _Tp*) [with _Tp = int [1000005]; _Alloc = std::allocator<int [1000005]>]’ /usr/include/c++/4.8/bits/vector.tcc:422:66: required from ‘void std::vector<_Tp, _Alloc>::_M_emplace_back_aux(_Args&& ...) [with _Args = {const int (&)[1000005]}; _Tp = int [1000005]; _Alloc = std::allocator<int [1000005]>]’ /usr/include/c++/4.8/bits/stl_vector.h:911:27: required from ‘void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int [1000005]; _Alloc = std::allocator<int [1000005]>; std::vector<_Tp, _Alloc>::value_type = int [1000005]]’ user.cpp:74:31: required from here /usr/include/c++/4.8/ext/new_allocator.h:124:29: error: request for member ‘~int [1000005]’ in ‘* __p’, which is of non-class type ‘int [1000005]’ destroy(_Up* __p) { __p->~_Up(); } ^

Ceva nu functioneaza?