Borderou de evaluare (job #2351752)

Utilizator marlenchelba@yahoo.comMarilena Chelba [email protected] Data 22 februarie 2019 17:51:56
Problema Poligon6 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:6:50: error: 'int div' redeclared as different kind of symbol int seturi, i, counter, j, n, k, p, x, q1, nonp, div, decaut/*cate secv*/, vt[15003], lenght; ^~~ 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:5420, 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 main.cpp:1: /usr/include/stdlib.h:788:14: note: previous declaration 'div_t div(int, int)' extern div_t div (int __numer, int __denom) ^~~ main.cpp: In function 'int main()': main.cpp:18:17: error: overloaded function with no contextual type information div=2; ^ main.cpp:23:23: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator==' if(div==p) ~~~^~~ main.cpp:24:28: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator%' while(x%div==0) ~^~~~ main.cpp:26:28: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator/' x/=div; ^~~ main.cpp:26:28: error: in evaluation of 'operator/=(int, <unresolved overloaded function type>)' main.cpp:29:28: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator%' while(x%div==0) ~^~~~ main.cpp:31:28: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator/' x/=div; ^~~ main.cpp:31:28: error: in evaluation of 'operator/=(int, <unresolved overloaded function type>)' main.cpp:34:20: error: no post-increment operator for type div++; ^~ Non zero exit status: 1

Ceva nu functioneaza?