Borderou de evaluare (job #2258134)

Utilizator Theo20067Cismaru Theodor-Alexe Theo20067 Data 10 octombrie 2018 21:27:25
Problema Maxd Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:3:9: error: ‘int div’ redeclared as different kind of symbol int a,b,div,maxdiv,maxnr,contur,minnr,i,j; ^~~ In file included from /usr/include/c++/6/cstdlib:75:0, from /usr/include/c++/6/ext/string_conversions.h:41, from /usr/include/c++/6/bits/basic_string.h:5417, from /usr/include/c++/6/string:52, from /usr/include/c++/6/bits/locale_classes.h:40, from /usr/include/c++/6/bits/ios_base.h:41, from /usr/include/c++/6/ios:42, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from user.cpp:1: /usr/include/stdlib.h:788:14: note: previous declaration ‘div_t div(int, int)’ extern div_t div (int __numer, int __denom) ^~~ user.cpp: In function ‘int main()’: user.cpp:12:13: error: overloaded function with no contextual type information div=1; ^ user.cpp:18:24: error: no post-increment operator for type div++; ^~ user.cpp:20:28: error: no post-increment operator for type div++; ^~ user.cpp:23:19: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator>’ if(div>maxdiv) ~~~^~~~~~~ user.cpp:24:24: error: cannot resolve overloaded function ‘div’ based on conversion to type ‘int’ maxdiv=div; ^~~ user.cpp:29:13: error: overloaded function with no contextual type information div=1; ^ user.cpp:34:24: error: no post-increment operator for type div++; ^~ user.cpp:37:28: error: no post-increment operator for type div++; ^~ user.cpp:40:19: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator==’ if(div==maxdiv) ~~~^~~~~~~~ user.cpp:49:13: error: overloaded function with no contextual type information div=1; ^ user.cpp:54:24: error: no post-increment operator for type div++; ^~

Ceva nu functioneaza?