Borderou de evaluare (job #1580655)
Utilizator | Data | 25 ianuarie 2016 23:31:10 | |
---|---|---|---|
Problema | Heapuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:8: error: array bound is not an integer constant before ‘]’ token
int h[N], v[N], poz[N], nrh, nre;
^
user.cpp:7:14: error: array bound is not an integer constant before ‘]’ token
int h[N], v[N], poz[N], nrh, nre;
^
user.cpp:7:22: error: array bound is not an integer constant before ‘]’ token
int h[N], v[N], poz[N], nrh, nre;
^
user.cpp: In function ‘void schimb(int, int)’:
user.cpp:11:15: error: ‘h’ was not declared in this scope
int aux = h[x];
^
user.cpp:16:5: error: ‘poz’ was not declared in this scope
poz[h[x]] = x;
^
user.cpp: In function ‘void urca(int)’:
user.cpp:22:20: error: ‘v’ was not declared in this scope
while(p > 1 && v[h[p]] < v[h[p/2]])
^
user.cpp:22:22: error: ‘h’ was not declared in this scope
while(p > 1 && v[h[p]] < v[h[p/2]])
^
user.cpp: In function ‘void coboara(int)’:
user.cpp:33:22: error: ‘v’ was not declared in this scope
if (fs <= nrh && v[h[fs]] < v[h[bun]]) bun = fs;
^
user.cpp:33:24: error: ‘h’ was not declared in this scope
if (fs <= nrh && v[h[fs]] < v[h[bun]]) bun = fs;
^
user.cpp:35:22: error: ‘v’ was not declared in this scope
if (fd <= nrh && v[h[fd]] < v[h[bun]]) bun = fd;
^
user.cpp:35:24: error: ‘h’ was not declared in this scope
if (fd <= nrh && v[h[fd]] < v[h[bun]]) bun = fd;
^
user.cpp: In function ‘void afisare()’:
user.cpp:46:12: error: ‘v’ was not declared in this scope
g<<v[h[i]]<<" ";
^
user.cpp:46:14: error: ‘h’ was not declared in this scope
g<<v[h[i]]<<" ";
^
user.cpp: In function ‘int main()’:
user.cpp:59:13: error: ‘v’ was not declared in this scope
v[++nre] = x;
^
user.cpp:60:13: error: ‘h’ was not declared in this scope
h[++nrh] = nre;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !