Borderou de evaluare (job #1653633)
Utilizator | Data | 16 martie 2016 12:56:12 | |
---|---|---|---|
Problema | Livada | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:34: error: ‘int rand’ redeclared as different kind of symbol
int n,m,p,x,i,j,v[101],q,nr,maxi,rand;
^
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/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from user.cpp:1:
/usr/include/stdlib.h:380:12: error: previous declaration of ‘int rand()’
extern int rand (void) __THROW;
^
user.cpp: In function ‘int main()’:
user.cpp:16:93: error: assignment of function ‘int rand()’
if(maxi<max(maxi,v[j])){ rand=i;
^
user.cpp:16:93: error: cannot convert ‘int’ to ‘int()throw ()’ in assignment
user.cpp:24:21: warning: the address of ‘int rand()’ will always evaluate as ‘true’ [-Waddress]
fout<<nr<<endl<<rand;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !