Borderou de evaluare (job #1796355)

Utilizator topala.andreiTopala Andrei topala.andrei Data 3 noiembrie 2016 13:32:03
Problema Datorii Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:7:24: error: ‘int div’ redeclared as different kind of symbol int Arb[4*dim],Val,Poz,div,z1,z2,S,N,achit; ^ 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/ostream:38, from /usr/include/c++/4.8/iostream:39, 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 ‘void Update(int, int, int)’: user.cpp:16:8: error: overloaded function with no contextual type information div=(left+right)/2; ^ user.cpp:17:14: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator<=’ if (Poz<=div) Update(2*nod,left,div); ^ user.cpp:17:40: error: cannot resolve overloaded function ‘div’ based on conversion to type ‘int’ if (Poz<=div) Update(2*nod,left,div); ^ user.cpp:18:29: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator+’ else Update(2*nod+1,div+1,right); ^ user.cpp: In function ‘void Query(int, int, int)’: user.cpp:29:8: error: overloaded function with no contextual type information div=(left+right)/2; ^ user.cpp:30:13: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator<=’ if (z1<=div) Query(2*nod,left,div); ^ user.cpp:30:38: error: cannot resolve overloaded function ‘div’ based on conversion to type ‘int’ if (z1<=div) Query(2*nod,left,div); ^ user.cpp:31:12: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator<’ if (z2<div) Query(2*nod+1,div+1,right); ^ user.cpp:31:35: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator+’ if (z2<div) Query(2*nod+1,div+1,right); ^

Ceva nu functioneaza?