Borderou de evaluare (job #1739578)
Utilizator | Data | 9 august 2016 19:18:54 | |
---|---|---|---|
Problema | NumMst | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:11:12: error: ‘int div’ redeclared as different kind of symbol
int n, rd, div, dmin, nr, d[MAX + 1], ind;
^
In file included from /usr/include/c++/4.8/cstdlib:72:0,
from /usr/include/c++/4.8/ext/string_conversions.h:41,
from /usr/include/c++/4.8/bits/basic_string.h:2815,
from /usr/include/c++/4.8/string:52,
from /usr/include/c++/4.8/bits/locale_classes.h:40,
from /usr/include/c++/4.8/bits/ios_base.h:41,
from /usr/include/c++/4.8/ios:42,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/stdlib.h:785:14: error: previous declaration of ‘div_t div(int, int)’
extern div_t div (int __numer, int __denom)
^
user.cpp: In function ‘void SearchD()’:
user.cpp:33:9: error: overloaded function with no contextual type information
div = 2;
^
user.cpp:34:19: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator<=’
while (div <= rd)
^
user.cpp:36:17: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator%’
if (n % div == 0)
^
user.cpp:38:18: error: cannot resolve overloaded function ‘div’ based on conversion to type ‘int’
dmin = div;
^
user.cpp:41:20: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator==’
if (div == 2)div++;
^
user.cpp:41:25: error: no post-increment operator for type
if (div == 2)div++;
^
user.cpp:42:18: error: overloaded function with no contextual type information
else div += 2;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !