Borderou de evaluare (job #53799)

Utilizator MariusMarius Stroe Marius Data 23 aprilie 2007 13:24:58
Problema Otilia Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare in evaluator: user.cpp:74:2: warning: no newline at end of file user.cpp:17: error: 'int index [32768]' redeclared as different kind of symbol /usr/include/string.h:304: error: previous declaration of 'char* index(const char*, int)' user.cpp: In function 'void solve()': user.cpp:38: error: pointer to a function used in arithmetic user.cpp:38: error: assignment of read-only location user.cpp:38: error: cannot convert 'int' to 'char* ()(const char*, int)throw ()' in assignment user.cpp:43: error: pointer to a function used in arithmetic user.cpp:46: error: pointer to a function used in arithmetic user.cpp:46: error: invalid types 'int [32768][char* ()(const char*, int)throw ()]' for array subscript user.cpp:53: error: pointer to a function used in arithmetic user.cpp:53: error: invalid types 'int [32768][char* ()(const char*, int)throw ()]' for array subscript user.cpp:54: error: pointer to a function used in arithmetic user.cpp:54: error: invalid types 'int [32768][char* ()(const char*, int)throw ()]' for array subscript user.cpp:54: error: pointer to a function used in arithmetic user.cpp:54: error: invalid types 'int [32768][char* ()(const char*, int)throw ()]' for array subscript /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_algo.h: In function 'void std::sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = char* (*)(const char*, int)throw (), _Compare = int (*)(int, int)]': user.cpp:43: instantiated from here /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_algo.h:2749: error: ISO C++ forbids using pointer to a function in subtraction /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.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 = int (*)(int, int)]': /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_algo.h:2749: instantiated from 'void std::sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = char* (*)(const char*, int)throw (), _Compare = int (*)(int, int)]' user.cpp:43: instantiated from here /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_algo.h:2662: error: ISO C++ forbids using pointer to a function in subtraction /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_algo.h:2749: instantiated from 'void std::sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = char* (*)(const char*, int)throw (), _Compare = int (*)(int, int)]' user.cpp:43: instantiated from here

Ceva nu functioneaza?