Borderou de evaluare (job #1237741)
Utilizator | Data | 4 octombrie 2014 19:09:48 | |
---|---|---|---|
Problema | Carti | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:18: error: ‘int rand’ redeclared as different kind of symbol
int n,o,nr,k,joc,rand,v[50],i,w,y,s;
^
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/istream:38,
from /usr/include/c++/4.8/fstream:38,
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:29:13: error: assignment of function ‘int rand()’
rand=0;
^
user.cpp:29:13: error: cannot convert ‘int’ to ‘int()throw ()’ in assignment
user.cpp:40:26: warning: the address of ‘int rand()’ will never be NULL [-Waddress]
if(rand==0) rand=1;
^
user.cpp:40:33: error: assignment of function ‘int rand()’
if(rand==0) rand=1;
^
user.cpp:40:33: error: cannot convert ‘int’ to ‘int()throw ()’ in assignment
user.cpp:42:29: error: assignment of function ‘int rand()’
rand=0;}
^
user.cpp:42:29: error: cannot convert ‘int’ to ‘int()throw ()’ in assignment
user.cpp:47:26: warning: the address of ‘int rand()’ will never be NULL [-Waddress]
if(rand==0) rand=1;
^
user.cpp:47:33: error: assignment of function ‘int rand()’
if(rand==0) rand=1;
^
user.cpp:47:33: error: cannot convert ‘int’ to ‘int()throw ()’ in assignment
user.cpp:49:29: error: assignment of function ‘int rand()’
rand=0;}
^
user.cpp:49:29: error: cannot convert ‘int’ to ‘int()throw ()’ in assignment
user.cpp:54:18: warning: the address of ‘int rand()’ will never be NULL [-Waddress]
if(rand==0) g<<"Alice";
^
user.cpp:58:13: error: assignment of function ‘int rand()’
rand=0;
^
user.cpp:58:13: error: cannot convert ‘int’ to ‘int()throw ()’ in assignment
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !