Borderou de evaluare (job #1305099)

Utilizator klbraduRadu Capalb klbradu Data 29 decembrie 2014 15:41:23
Problema Maxd Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:3:58: error: ‘int div’ redeclared as different kind of symbol int v[60000], i, A[30000], k, j, a, b, h, aux, B[30000], div, divmax, Min, contor, nr; ^ In file included from /usr/include/c++/4.8/cstdlib:72:0, from /usr/include/c++/4.8/ext/string_conversions.h:41, from /usr/include/c++/4.8/bits/basic_string.h:2815, from /usr/include/c++/4.8/string:52, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /usr/include/stdlib.h:785:14: error: previous declaration of ‘div_t div(int, int)’ extern div_t div (int __numer, int __denom) ^ user.cpp: In function ‘int main()’: user.cpp:24:13: error: overloaded function with no contextual type information div = 1; ^ user.cpp:32:21: error: overloaded function with no contextual type information div *= (1+nr); ^ user.cpp:36:17: error: overloaded function with no contextual type information div *= 2; ^ user.cpp:40:18: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator>’ if(div > divmax){ ^ user.cpp:42:20: error: cannot resolve overloaded function ‘div’ based on conversion to type ‘int’ divmax = div; ^ user.cpp:46:23: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator==’ if(div == divmax){ ^

Ceva nu functioneaza?