Borderou de evaluare (job #1901440)
Utilizator | Data | 3 martie 2017 22:55:07 | |
---|---|---|---|
Problema | Secv8 | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c:7:3: error: unknown type name ‘bool’
bool l;
^
user.c:8:3: error: unknown type name ‘_T’
_T *st, *dr;
^
user.c: In function ‘make’:
user.c:13:24: error: ‘_T’ undeclared (first use in this function)
x = (T)malloc(sizeof(_T));
^
user.c:13:24: note: each undeclared identifier is reported only once for each function it appears in
user.c:17:12: error: ‘false’ undeclared (first use in this function)
x -> l = false;
^
user.c: At top level:
user.c:22:15: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token
void refresh(T& x) {
^
user.c: In function ‘size’:
user.c:40:3: warning: implicit declaration of function ‘refresh’ [-Wimplicit-function-declaration]
refresh(x);
^
user.c: At top level:
user.c:44:26: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token
void split(T t, int x, T &l, T &r, int st) {
^
user.c: In function ‘join’:
user.c:65:5: warning: passing argument 1 of ‘join’ from incompatible pointer type [enabled by default]
st -> dr = join(st -> dr, dr);
^
user.c:59:3: note: expected ‘T’ but argument is of type ‘int *’
T join(T st, T dr) {
^
user.c:65:14: warning: assignment from incompatible pointer type [enabled by default]
st -> dr = join(st -> dr, dr);
^
user.c:69:5: warning: passing argument 2 of ‘join’ from incompatible pointer type [enabled by default]
dr -> st = join(st, dr -> st);
^
user.c:59:3: note: expected ‘T’ but argument is of type ‘int *’
T join(T st, T dr) {
^
user.c:69:14: warning: assignment from incompatible pointer type [enabled by default]
dr -> st = join(st, dr -> st);
^
user.c: In function ‘sterge’:
user.c:77:5: warning: passing argument 1 of ‘sterge’ from incompatible pointer type [enabled by default]
sterge(x -> st);
^
user.c:75:6: note: expected ‘T’ but argument is of type ‘int *’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !