Borderou de evaluare (job #161402)

Utilizator C_OvidiuCotletz Ovidiu C_Ovidiu Data 17 martie 2008 23:03:02
Problema Pairs Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare in evaluator: In file included from /usr/include/c++/4.2/backward/fstream.h:31, from user.cpp:2: /usr/include/c++/4.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated. user.cpp:7: error: 'long int div [100]' redeclared as different kind of symbol /usr/include/stdlib.h:799: error: previous declaration of 'div_t div(int, int)' user.cpp: In function 'int main()': user.cpp:58: error: ISO C++ forbids applying 'sizeof' to an expression of function type user.cpp:58: error: invalid conversion from 'div_t (*)(int, int)throw ()' to 'void*' user.cpp:58: error: initializing argument 1 of 'void* memset(void*, int, size_t)' user.cpp:63: error: pointer to a function used in arithmetic user.cpp:63: error: increment of read-only location user.cpp:63: error: ISO C++ forbids incrementing a pointer of type 'div_t (*)(int, int)throw ()' user.cpp:63: error: lvalue required as increment operand user.cpp:64: error: pointer to a function used in arithmetic user.cpp:64: error: invalid types 'div_t ()(int, int)throw ()[div_t ()(int, int)throw ()]' for array subscript user.cpp:65: error: pointer to a function used in arithmetic user.cpp:65: error: increment of read-only location user.cpp:65: error: ISO C++ forbids incrementing a pointer of type 'div_t (*)(int, int)throw ()' user.cpp:65: error: lvalue required as increment operand user.cpp:70: error: pointer to a function used in arithmetic user.cpp:70: warning: the address of 'div_t div(int, int)' will always evaluate as 'true' user.cpp:71: error: pointer to a function used in arithmetic user.cpp:71: error: increment of read-only location user.cpp:71: error: ISO C++ forbids incrementing a pointer of type 'div_t (*)(int, int)throw ()' user.cpp:71: error: lvalue required as increment operand

Ceva nu functioneaza?