Borderou de evaluare (job #542248)

Utilizator feelshiftFeelshift feelshift Data 26 februarie 2011 00:18:20
Problema Arbore partial de cost minim Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:17: error: 'int link [400002]' redeclared as different kind of symbol /usr/include/unistd.h:757: error: previous declaration of 'int link(const char*, const char*)' user.cpp: In function 'int main()': user.cpp:30: error: pointer to a function used in arithmetic user.cpp:30: error: assignment of read-only location user.cpp:30: error: cannot convert 'int' to 'int ()(const char*, const char*)throw ()' in assignment user.cpp:33: error: pointer to a function used in arithmetic user.cpp:33: error: pointer to a function used in arithmetic user.cpp:33: error: pointer to a function used in arithmetic user.cpp:41: error: pointer to a function used in arithmetic user.cpp:41: error: invalid types 'stuff [400002][int ()(const char*, const char*)throw ()]' for array subscript user.cpp:41: error: pointer to a function used in arithmetic user.cpp:41: error: invalid types 'stuff [400002][int ()(const char*, const char*)throw ()]' for array subscript user.cpp:42: error: pointer to a function used in arithmetic user.cpp:42: error: invalid types 'stuff [400002][int ()(const char*, const char*)throw ()]' for array subscript user.cpp:44: error: pointer to a function used in arithmetic user.cpp:44: error: invalid types 'stuff [400002][int ()(const char*, const char*)throw ()]' for array subscript user.cpp:44: error: pointer to a function used in arithmetic user.cpp:44: error: invalid types 'stuff [400002][int ()(const char*, const char*)throw ()]' for array subscript user.cpp:46: error: pointer to a function used in arithmetic user.cpp:46: error: invalid conversion from 'int (*)(const char*, const char*)throw ()' to 'int' /usr/include/c++/4.2/bits/stl_algo.h: In function 'void std::sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int (*)(const char*, const char*)throw (), _Compare = bool (*)(int, int)]': user.cpp:33: instantiated from here /usr/include/c++/4.2/bits/stl_algo.h:2866: error: ISO C++ forbids using pointer to a function in subtraction /usr/include/c++/4.2/bits/stl_algo.h: In function 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = int (*)(const char*, const char*)throw (), _Size = int, _Compare = bool (*)(int, int)]': /usr/include/c++/4.2/bits/stl_algo.h:2866: instantiated from 'void std::sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int (*)(const char*, const char*)throw (), _Compare = bool (*)(int, int)]' user.cpp:33: instantiated from here /usr/include/c++/4.2/bits/stl_algo.h:2778: error: ISO C++ forbids using pointer to a function in subtraction /usr/include/c++/4.2/bits/stl_algo.h:2866: instantiated from 'void std::sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int (*)(const char*, const char*)throw (), _Compare = bool (*)(int, int)]' user.cpp:33: instantiated from here /usr/include/c++/4.2/bits/stl_algo.h:2795: error: ISO C++ forbids using pointer to a function in subtraction /usr/include/c++/4.2/bits/stl_algo.h:2795: error: pointer to a function used in arithmetic /usr/include/c++/4.2/bits/stl_algo.h:2795: error: pointer to a function used in arithmetic /usr/include/c++/4.2/bits/stl_algo.h:2866: instantiated from 'void std::sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int (*)(const char*, const char*)throw (), _Compare = bool (*)(int, int)]' user.cpp:33: instantiated from here /usr/include/c++/4.2/bits/stl_algo.h:2795: error: invalid cast to function type 'int ()(const char*, const char*)throw ()' /usr/include/c++/4.2/bits/stl_algo.h: In function 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int (*)(const char*, const char*)throw (), _Compare = bool (*)(int, int)]': /usr/include/c++/4.2/bits/stl_algo.h:2868: instantiated from 'void std::sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int (*)(const char*, const char*)throw (), _Compare = bool (*)(int, int)]' user.cpp:33: instantiated from here /usr/include/c++/4.2/bits/stl_algo.h:2455: error: ISO C++ forbids using pointer to a function in subtraction /usr/include/c++/4.2/bits/stl_algo.h:2457: error: pointer to a function used in arithmetic /usr/include/c++/4.2/bits/stl_algo.h:2868: instantiated from 'void std::sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int (*)(const char*, const char*)throw (), _Compare = bool (*)(int, int)]' user.cpp:33: instantiated from here /usr/include/c++/4.2/bits/stl_algo.h:2458: error: pointer to a function used in arithmetic /usr/include/c++/4.2/bits/stl_algo.h: In function 'const _Tp& std::__median(const _Tp&, const _Tp&, const _Tp&, _Compare) [with _Tp = int ()(const char*, const char*)throw (), _Compare = bool (*)(int, int)]': /usr/include/c++/4.2/bits/stl_algo.h:2795: instantiated from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = int (*)(const char*, const char*)throw (), _Size = int, _Compare = bool (*)(int, int)]' /usr/include/c++/4.2/bits/stl_algo.h:2866: instantiated from 'void std::sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int (*)(const char*, const char*)throw (), _Compare = bool (*)(int, int)]' user.cpp:33: instantiated from here /usr/include/c++/4.2/bits/stl_algo.h:125: error: invalid conversion from 'int (*)(const char*, const char*)throw ()' to 'int' /usr/include/c++/4.2/bits/stl_algo.h:125: error: invalid conversion from 'int (*)(const char*, const char*)throw ()' to 'int'

Ceva nu functioneaza?