Borderou de evaluare (job #2302643)
Utilizator | Data | 14 decembrie 2018 22:26:15 | |
---|---|---|---|
Problema | Perechi | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:11: error: 'int div' redeclared as different kind of symbol
int n,t=1,div=2,nr;
^~~
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:12:12: error: invalid operands of types '<unresolved overloaded function type>' and '<unresolved overloaded function type>' to binary 'operator*'
while(div*div<=n)
~~~^~~~
main.cpp:13:11: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator%'
{while(n%div==0)
~^~~~
main.cpp:15:10: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator/'
n/=div;
^~~
main.cpp:15:10: error: in evaluation of 'operator/=(int, <unresolved overloaded function type>)'
main.cpp:18:6: error: overloaded function with no contextual type information
div+=1;nr=0;
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !