Borderou de evaluare (job #2284941)
Utilizator | Data | 17 noiembrie 2018 19:37:20 | |
---|---|---|---|
Problema | Mins | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:4:48: error: 'int div' redeclared as different kind of symbol
int min1,max1,v[10010],i,j,cp,sol,ok,c,d,m,x,y,div;
^~~
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:13:13: error: overloaded function with no contextual type information
for(div=2;div*div<=min1;div++)
^
main.cpp:13:18: error: invalid operands of types '<unresolved overloaded function type>' and '<unresolved overloaded function type>' to binary 'operator*'
for(div=2;div*div<=min1;div++)
~~~^~~~
main.cpp:13:32: error: no post-increment operator for type
for(div=2;div*div<=min1;div++)
^~
main.cpp:15:20: error: invalid types 'bool [1000010][<unresolved overloaded function type>]' for array subscript
if(ciur[div]==0)
^
main.cpp:18:18: error: cannot resolve overloaded function 'div' based on conversion to type 'int'
v[m]=div;
^~~
main.cpp:19:22: error: invalid operands of types '<unresolved overloaded function type>' and '<unresolved overloaded function type>' to binary 'operator*'
for(i=div*div;i<=min1;i=i+div)
~~~^~~~
main.cpp:19:38: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator+'
for(i=div*div;i<=min1;i=i+div)
~^~~~
main.cpp:23:11: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator=='
if(div==v[m]) div++;
~~~^~~~~~
main.cpp:23:22: error: no post-increment operator for type
if(div==v[m]) div++;
^~
main.cpp:24:11: error: cannot resolve overloaded function 'div' based on conversion to type 'int'
for(i=div;i<=min1;i++)
^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !