Borderou de evaluare (job #2162705)
Utilizator | Data | 12 martie 2018 13:02:37 | |
---|---|---|---|
Problema | Principiul includerii si excluderii | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:14: error: ‘int div [10001]’ redeclared as different kind of symbol
int div[10001],i,a,b,n,k,j,sol,t,nrd;
^
In file included from /usr/include/c++/5/cstdlib:72:0,
from /usr/include/c++/5/ext/string_conversions.h:41,
from /usr/include/c++/5/bits/basic_string.h:5249,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/bits/locale_classes.h:40,
from /usr/include/c++/5/bits/ios_base.h:41,
from /usr/include/c++/5/ios:42,
from /usr/include/c++/5/istream:38,
from /usr/include/c++/5/fstream:38,
from user.cpp:1:
/usr/include/stdlib.h:788:14: note: previous declaration ‘div_t div(int, int)’
extern div_t div (int __numer, int __denom)
^
user.cpp: In function ‘void descp(int)’:
user.cpp:13:19: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
div[++k]=d;
^
user.cpp:22:12: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
div[++k]=nr;
^
user.cpp: In function ‘int main()’:
user.cpp:37:26: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
if(j%div[t]==0)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !