Borderou de evaluare (job #2186033)
Utilizator | Data | 25 martie 2018 11:53:05 | |
---|---|---|---|
Problema | Produse2 | Status | done |
Runda | Agm 2018 Runda 2 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:44: error: ‘int div’ redeclared as different kind of symbol
int t, n, b[300005], f[300005], a[300005], div,ok, sol[300005], f2[300005];
^~~
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:5417,
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 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 solve()’:
user.cpp:28:21: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator*’
sol[i]*=div;
^~~
user.cpp:28:21: error: in evaluation of ‘operator*=(int, <unresolved overloaded function type>)’
user.cpp: In function ‘int main()’:
user.cpp:40:13: error: overloaded function with no contextual type information
div=2; ok2=1;
^
user.cpp:48:27: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator%’
while(b[i]%div==0) {f[i]++; b[i]/=div;}
~~~~^~~~
user.cpp:48:51: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator/’
while(b[i]%div==0) {f[i]++; b[i]/=div;}
^~~
user.cpp:48:51: error: in evaluation of ‘operator/=(int, <unresolved overloaded function type>)’
user.cpp:53:16: error: no post-increment operator for type
div++;
^~
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !