Borderou de evaluare (job #2382094)
Utilizator | Data | 17 martie 2019 18:20:50 | |
---|---|---|---|
Problema | Valutar | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:6:37: error: 'int rand' redeclared as different kind of symbol
int cerinta,a,b,nra,nrcrt,n,m,L,E,x,rand,pozcrt;
^~~~
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/istream:38,
from /usr/include/c++/6/fstream:38,
from main.cpp:1:
/usr/include/stdlib.h:374:12: note: previous declaration 'int rand()'
extern int rand (void) __THROW;
^~~~
main.cpp: In function 'int main()':
main.cpp:13:10: error: assignment of function 'int rand()'
rand=1;
^
main.cpp:13:10: error: cannot convert 'int' to 'int() throw ()' in assignment
main.cpp:25:17: error: invalid types 'int [110][int() throw ()]' for array subscript
poz[rand]+=nrcrt;
^
main.cpp:26:21: error: invalid types 'int [110][int() throw ()]' for array subscript
if (poz[rand]>n)
^
main.cpp:27:21: error: invalid types 'int [110][int() throw ()]' for array subscript
poz[rand]%=n;
^
main.cpp:28:24: error: invalid types 'int [110][int() throw ()]' for array subscript
pozcrt=poz[rand];
^
main.cpp:30:21: error: invalid types 'int [110][int() throw ()]' for array subscript
pas[rand]++;
^
main.cpp:32:25: error: invalid types 'int [110][int() throw ()]' for array subscript
if (lei[rand]<pozcrt*cump[pozcrt]) {
^
main.cpp:33:29: error: invalid types 'int [110][int() throw ()]' for array subscript
if (pas[rand]!=0)
^
main.cpp:34:29: error: invalid types 'int [110][int() throw ()]' for array subscript
pas[rand]--;
^
main.cpp:36:29: error: invalid types 'int [110][int() throw ()]' for array subscript
ver[rand]=1;
^
main.cpp:39:25: error: invalid types 'int [110][int() throw ()]' for array subscript
lei[rand]-=pozcrt*cump[pozcrt];
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !