Borderou de evaluare (job #2082074)
Utilizator | Data | 5 decembrie 2017 18:05:38 | |
---|---|---|---|
Problema | Arbori de intervale | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:3:13: warning: ISO C99 requires whitespace after the macro name [enabled by default]
#define nmax=100000
^
user.cpp:3:13: error: expected primary-expression before ‘=’ token
#define nmax=100000
^
user.cpp:10:14: note: in expansion of macro ‘nmax’
int arbore[4*nmax], i, j, n, x, y, m, nr, z;
^
user.cpp: In function ‘void act(int, int, int, int, int)’:
user.cpp:15:9: error: ‘arbore’ was not declared in this scope
arbore[nod]=val;
^
user.cpp:25:9: error: ‘arbore’ was not declared in this scope
arbore[nod]=max(arbore[2*nod], arbore[2*nod+1]);
^
user.cpp: In function ‘int que(int, int, int, int, int)’:
user.cpp:34:16: error: ‘arbore’ was not declared in this scope
return arbore[nod];
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !