Borderou de evaluare (job #2482517)
Utilizator | Data | 28 octombrie 2019 13:59:17 | |
---|---|---|---|
Problema | Maxd | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:6:27: error: 'long long int div' redeclared as different kind of symbol
long long a,b,i,v[4649],j,div,divmax,minim,contor,o,x,k;
^~~
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/istream:38,
from /usr/include/c++/6/fstream:38,
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:23:13: error: overloaded function with no contextual type information
div=1;
^
main.cpp:33:20: error: invalid operands of types '<unresolved overloaded function type>' and 'long long int' to binary 'operator*'
div=div*(k+1);
~~~^~~~~~
main.cpp:35:15: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator=='
if(div==1)
~~~^~~
main.cpp:36:17: error: overloaded function with no contextual type information
div=2;
^
main.cpp:37:15: error: invalid operands of types '<unresolved overloaded function type>' and 'long long int' to binary 'operator=='
if(div==divmax)
~~~^~~~~~~~
main.cpp:39:15: error: invalid operands of types '<unresolved overloaded function type>' and 'long long int' to binary 'operator>'
if(div>divmax)
~~~^~~~~~~
main.cpp:41:20: error: cannot resolve overloaded function 'div' based on conversion to type 'long long int'
divmax=div;
^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !