Borderou de evaluare (job #2559456)
Utilizator | Data | 27 februarie 2020 12:33:52 | |
---|---|---|---|
Problema | Exp | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:39: error: 'int div' redeclared as different kind of symbol
int v[5000],m,n,i,cop,frec[5000],mx=0,div,suma,ok=1;
^~~
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:17:13: error: overloaded function with no contextual type information
div=2;
^
main.cpp:20:19: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator%'
if(cop%div==0)
~~~^~~~
main.cpp:22:27: error: invalid types 'int [5000][<unresolved overloaded function type>]' for array subscript
++frec[div];
^
main.cpp:23:22: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator/'
cop/=div;
^~~
main.cpp:23:22: error: in evaluation of 'operator/=(int, <unresolved overloaded function type>)'
main.cpp:28:19: error: no pre-increment operator for type
++div;
^~~
main.cpp:30:19: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator>'
if(div>mx)
~~~^~~
main.cpp:31:20: error: cannot resolve overloaded function 'div' based on conversion to type 'int'
mx=div;
^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !