Borderou de evaluare (job #469808)

Utilizator Bogdan_tmmTirca Bogdan Bogdan_tmm Data 9 iulie 2010 05:34:35
Problema Retele Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:36: error: 'int index [50005]' redeclared as different kind of symbol /usr/include/string.h:310: error: previous declaration of 'char* index(const char*, int)' user.cpp: In function 'int main()': user.cpp:90: error: pointer to a function used in arithmetic user.cpp:90: error: assignment of read-only location user.cpp:90: error: cannot convert 'int' to 'char* ()(const char*, int)throw ()' in assignment user.cpp:92: error: pointer to a function used in arithmetic user.cpp:92: error: pointer to a function used in arithmetic user.cpp:92: error: pointer to a function used in arithmetic user.cpp:98: error: pointer to a function used in arithmetic user.cpp:98: error: invalid types 'std::priority_queue<int, std::vector<int, std::allocator<int> >, cmp_q> [50005][char* ()(const char*, int)throw ()]' for array subscript user.cpp:99: error: pointer to a function used in arithmetic user.cpp:99: error: invalid types 'std::priority_queue<int, std::vector<int, std::allocator<int> >, cmp_q> [50005][char* ()(const char*, int)throw ()]' for array subscript user.cpp:101: error: pointer to a function used in arithmetic user.cpp:101: error: invalid types 'std::priority_queue<int, std::vector<int, std::allocator<int> >, cmp_q> [50005][char* ()(const char*, int)throw ()]' for array subscript user.cpp:102: error: pointer to a function used in arithmetic user.cpp:102: error: invalid types 'std::priority_queue<int, std::vector<int, std::allocator<int> >, cmp_q> [50005][char* ()(const char*, int)throw ()]' for array subscript /usr/include/c++/4.2/bits/stl_algo.h: In function 'void std::sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = char* (*)(const char*, int)throw (), _Compare = cmp_v]': user.cpp:92: 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 = char* (*)(const char*, int)throw (), _Size = int, _Compare = cmp_v]': /usr/include/c++/4.2/bits/stl_algo.h:2866: instantiated from 'void std::sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = char* (*)(const char*, int)throw (), _Compare = cmp_v]' user.cpp:92: 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 = char* (*)(const char*, int)throw (), _Compare = cmp_v]' user.cpp:92: 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 = char* (*)(const char*, int)throw (), _Compare = cmp_v]' user.cpp:92: instantiated from here /usr/include/c++/4.2/bits/stl_algo.h:2795: error: invalid cast to function type 'char* ()(const char*, int)throw ()' /usr/include/c++/4.2/bits/stl_algo.h: In function 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = char* (*)(const char*, int)throw (), _Compare = cmp_v]': /usr/include/c++/4.2/bits/stl_algo.h:2868: instantiated from 'void std::sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = char* (*)(const char*, int)throw (), _Compare = cmp_v]' user.cpp:92: 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 = char* (*)(const char*, int)throw (), _Compare = cmp_v]' user.cpp:92: 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 = char* ()(const char*, int)throw (), _Compare = cmp_v]': /usr/include/c++/4.2/bits/stl_algo.h:2795: instantiated from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = char* (*)(const char*, int)throw (), _Size = int, _Compare = cmp_v]' /usr/include/c++/4.2/bits/stl_algo.h:2866: instantiated from 'void std::sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = char* (*)(const char*, int)throw (), _Compare = cmp_v]' user.cpp:92: instantiated from here /usr/include/c++/4.2/bits/stl_algo.h:125: error: invalid conversion from 'char* (*)(const char*, int)throw ()' to 'int' /usr/include/c++/4.2/bits/stl_algo.h:125: error: initializing argument 1 of 'bool cmp_v::operator()(int, int) const' /usr/include/c++/4.2/bits/stl_algo.h:125: error: invalid conversion from 'char* (*)(const char*, int)throw ()' to 'int' /usr/include/c++/4.2/bits/stl_algo.h:125: error: initializing argument 2 of 'bool cmp_v::operator()(int, int) const' /usr/include/c++/4.2/bits/stl_algo.h:126: error: invalid conversion from 'char* (*)(const char*, int)throw ()' to 'int' /usr/include/c++/4.2/bits/stl_algo.h:126: error: initializing argument 1 of 'bool cmp_v::operator()(int, int) const'

Ceva nu functioneaza?