Borderou de evaluare (job #2529430)
Utilizator | Data | 23 ianuarie 2020 15:08:19 | |
---|---|---|---|
Problema | Maxd | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:7:23: error: 'int div' redeclared as different kind of symbol
int n,i,j,m,x,d,t,a,b,div,p,ma,q,d2,ciur[33005],w[15000];
^~~
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/ostream:38,
from /usr/include/c++/6/iostream:39,
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:15:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for ( i = d * d; i <= 33000; i = i + d )
^~~
main.cpp:18:7: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
j=1;
^
main.cpp:29:9: error: overloaded function with no contextual type information
div=1;
^
main.cpp:41:8: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator*'
div=div*(p+1);
~~~^~~~~~
main.cpp:51:8: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator*'
div=div*(p+1);
~~~^~~~~~
main.cpp:59:7: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator>'
if(div>ma){ma=div;t=1;q=i; }else
~~~^~~
main.cpp:59:15: error: cannot resolve overloaded function 'div' based on conversion to type 'int'
if(div>ma){ma=div;t=1;q=i; }else
^~~
main.cpp:60:7: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator=='
if(div==ma){t++;}
~~~^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !