Borderou de evaluare (job #105384)

Utilizator eferLiviu Ciortea efer Data 17 noiembrie 2007 16:45:11
Problema Cascaval Status done
Runda Happy Coding 2007 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare in evaluator: user.cpp:105: error: 'int index' redeclared as different kind of symbol /usr/include/string.h:310: error: previous declaration of 'char* index(const char*, int)' user.cpp: In function 'bool operator<(const entry&, const entry&)': user.cpp:112: error: pointer to a function used in arithmetic user.cpp:112: error: invalid conversion from 'char* (*)(const char*, int)throw ()' to 'int' user.cpp:112: error: initializing argument 2 of 'LL serve_cost(int, int)' user.cpp:113: error: pointer to a function used in arithmetic user.cpp:113: error: invalid conversion from 'char* (*)(const char*, int)throw ()' to 'int' user.cpp:113: error: initializing argument 2 of 'LL serve_cost(int, int)' user.cpp: In function 'int main()': user.cpp:152: error: assignment of function 'char* index(const char*, int)' user.cpp:152: error: cannot convert 'int' to 'char* ()(const char*, int)throw ()' in assignment user.cpp:152: error: ISO C++ forbids comparison between pointer and integer user.cpp:152: error: ISO C++ forbids incrementing a pointer of type 'char* (*)(const char*, int)throw ()' user.cpp:152: error: lvalue required as increment operand user.cpp:153: error: invalid types 'int [102400][char* ()(const char*, int)throw ()]' for array subscript user.cpp:153: error: invalid types 'LL [102400][char* ()(const char*, int)throw ()]' for array subscript user.cpp:153: error: pointer to a function used in arithmetic user.cpp:153: error: invalid types 'LL [102400][char* (*)(const char*, int)throw ()]' for array subscript user.cpp:154: error: invalid types 'LL [102400][char* ()(const char*, int)throw ()]' for array subscript user.cpp:156: error: invalid conversion from 'char* (*)(const char*, int)throw ()' to 'int' user.cpp:156: error: initializing argument 1 of 'entry::entry(int)' user.cpp:161: error: pointer to a function used in arithmetic user.cpp:161: error: invalid types 'int [102400][char* (*)(const char*, int)throw ()]' for array subscript user.cpp:162: error: invalid types 'int [102400][char* ()(const char*, int)throw ()]' for array subscript

Ceva nu functioneaza?