Borderou de evaluare (job #1277615)
Utilizator | Data | 27 noiembrie 2014 21:53:43 | |
---|---|---|---|
Problema | Grid | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:15:12: error: ‘nod* rand [3]’ redeclared as different kind of symbol
nod *rand[3];
^
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 ‘void initializeaza()’:
user.cpp:21:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
rand[i] = new nod;
^
user.cpp:21:17: error: assignment of read-only location ‘*(rand + ((sizetype)i))’
rand[i] = new nod;
^
user.cpp:21:17: error: cannot convert ‘nod*’ to ‘int()throw ()’ in assignment
user.cpp:22:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
rand[i]->prev = NULL;
^
user.cpp:22:18: error: request for member ‘prev’ in ‘*(rand + ((sizetype)i))’, which is of non-class type ‘int()throw ()’
rand[i]->prev = NULL;
^
user.cpp:23:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
rand[i]->next = NULL;
^
user.cpp:23:18: error: request for member ‘next’ in ‘*(rand + ((sizetype)i))’, which is of non-class type ‘int()throw ()’
rand[i]->next = NULL;
^
user.cpp:24:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
rand[i]->widget = 0;
^
user.cpp:24:18: error: request for member ‘widget’ in ‘*(rand + ((sizetype)i))’, which is of non-class type ‘int()throw ()’
rand[i]->widget = 0;
^
user.cpp:25:22: warning: pointer to a function used in arithmetic [-Wpointer-arith]
last = rand[i];
^
user.cpp:25:14: error: cannot convert ‘int()throw ()’ to ‘nod*’ in assignment
last = rand[i];
^
user.cpp: In function ‘void muta(int, int, int, int)’:
user.cpp:44:20: warning: pointer to a function used in arithmetic [-Wpointer-arith]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !