Borderou de evaluare (job #766150)

Utilizator dutzulBodnariuc Dan Alexandru dutzul Data 10 iulie 2012 14:31:45
Problema Stramosi Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:7: error: ‘int random [250500]’ redeclared as different kind of symbol /usr/include/stdlib.h:327: error: previous declaration of ‘long int random()’ user.cpp: In function ‘int main()’: user.cpp:47: warning: pointer to a function used in arithmetic user.cpp:47: error: assignment of read-only location ‘*(random + ((unsigned int)i))’ user.cpp:47: error: cannot convert ‘int’ to ‘long int()’ in assignment user.cpp:48: warning: pointer to a function used in arithmetic user.cpp:48: warning: pointer to a function used in arithmetic user.cpp:48: warning: pointer to a function used in arithmetic user.cpp:51: warning: pointer to a function used in arithmetic user.cpp:51: error: invalid types ‘int [250500][long int()]’ for array subscript user.cpp:52: warning: pointer to a function used in arithmetic user.cpp:52: error: invalid conversion from ‘long int (*)()throw ()’ to ‘int’ user.cpp:52: error: initializing argument 1 of ‘void setM(int)’ In file included from /usr/include/c++/4.4/algorithm:62, from user.cpp:3: /usr/include/c++/4.4/bits/stl_algo.h: In function ‘void std::random_shuffle(_RAIter, _RAIter) [with _RAIter = long int (*)()throw ()]’: user.cpp:48: instantiated from here /usr/include/c++/4.4/bits/stl_algo.h:4967: error: ISO C++ forbids incrementing a pointer of type ‘long int (*)()throw ()’ /usr/include/c++/4.4/bits/stl_algo.h:4968: error: ISO C++ forbids using pointer to a function in subtraction In file included from /usr/include/c++/4.4/bits/stl_pair.h:60, from /usr/include/c++/4.4/bits/stl_algobase.h:66, from /usr/include/c++/4.4/bits/char_traits.h:41, from /usr/include/c++/4.4/ios:41, from /usr/include/c++/4.4/istream:40, from /usr/include/c++/4.4/fstream:40, from user.cpp:1: /usr/include/c++/4.4/bits/move.h: In function ‘void std::swap(_Tp&, _Tp&) [with _Tp = long int()]’: /usr/include/c++/4.4/bits/stl_algobase.h:101: instantiated from ‘static void std::__iter_swap<true>::iter_swap(_ForwardIterator1, _ForwardIterator2) [with _ForwardIterator1 = long int (*)()throw (), _ForwardIterator2 = long int (*)()throw ()]’ /usr/include/c++/4.4/bits/stl_algobase.h:138: instantiated from ‘void std::iter_swap(_ForwardIterator1, _ForwardIterator2) [with _ForwardIterator1 = long int (*)()throw (), _ForwardIterator2 = long int (*)()throw ()]’ /usr/include/c++/4.4/bits/stl_algo.h:4968: instantiated from ‘void std::random_shuffle(_RAIter, _RAIter) [with _RAIter = long int (*)()throw ()]’ user.cpp:48: instantiated from here /usr/include/c++/4.4/bits/move.h:81: error: variable ‘__tmp’ has function type /usr/include/c++/4.4/bits/move.h:82: error: assignment of read-only reference ‘__a’ /usr/include/c++/4.4/bits/move.h:82: error: cannot convert ‘long int()’ to ‘long int()’ in assignment /usr/include/c++/4.4/bits/move.h:81: error: variable ‘__tmp’ has function type

Ceva nu functioneaza?