Borderou de evaluare (job #1490715)
Utilizator | Data | 24 septembrie 2015 01:12:57 | |
---|---|---|---|
Problema | Livada | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:4:11: error: ‘int rand’ redeclared as different kind of symbol
int m,n,p,rand,i,maj,nr,nrmaj,apar,apmax;
^
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:11:14: error: assignment of function ‘int rand()’
for (rand=1; rand<=m; rand++) {
^
user.cpp:11:14: error: cannot convert ‘int’ to ‘int()throw ()’ in assignment
user.cpp:11:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
for (rand=1; rand<=m; rand++) {
^
user.cpp:11:31: error: ISO C++ forbids incrementing a pointer of type ‘int (*)()throw ()’ [-fpermissive]
for (rand=1; rand<=m; rand++) {
^
user.cpp:11:31: error: lvalue required as increment operand
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !