Borderou de evaluare (job #1608587)
Utilizator | Data | 22 februarie 2016 10:46:45 | |
---|---|---|---|
Problema | Maxd | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:26: error: ‘long long int div’ redeclared as different kind of symbol
long long c,b,i,aux,mini,div,n,k,nr,nr2,j;
^
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 ‘int main()’:
user.cpp:2258:12: error: overloaded function with no contextual type information
div=1;
^
user.cpp:2259:21: error: overloaded function with no contextual type information
if(i==1) div=1;
^
user.cpp:2266:12: error: overloaded function with no contextual type information
div*=(nr2+1);
^
user.cpp:2270:16: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘long long int’ to binary ‘operator>’
if(div>n)
^
user.cpp:2272:14: error: cannot resolve overloaded function ‘div’ based on conversion to type ‘long long int’
n=div;
^
user.cpp:2277:22: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘long long int’ to binary ‘operator==’
else if(div==n)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !