Borderou de evaluare (job #1793596)

Utilizator CodrinsahCotarlan Codrin Codrinsah Data 31 octombrie 2016 11:09:59
Problema AI Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:12:38: error: ‘int div’ redeclared as different kind of symbol int i,j,n,m,s,nrzid,zidmax,x,y,dx,dy,div,s1,s2,maxi1,maxi2; ^ 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:110:8: error: overloaded function with no contextual type information div=cmmdc(dx,dy); ^ user.cpp:111:11: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator/’ dx=dx/div; ^ user.cpp:112:11: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator/’ dy=dy/div; ^ user.cpp:123:8: error: overloaded function with no contextual type information div=cmmdc(dx,dy); ^ user.cpp:124:11: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator/’ dx=dx/div; ^ user.cpp:125:11: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator/’ dy=dy/div; ^

Ceva nu functioneaza?