Borderou de evaluare (job #2191710)
Utilizator | Data | 3 aprilie 2018 15:24:29 | |
---|---|---|---|
Problema | Arbori de intervale | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:11:83: error: size of array ‘arbint’ is too large
int greutate[100001], viz[100001], tata_nod[100001] = {-1}, arbint[100001][100001];
^
user.cpp: In function ‘int actualizare(int, int, int, int, int, int)’:
user.cpp:25:9: error: ‘arbint’ was not declared in this scope
arbint[nod1][nod] = val[ce_nod];
^~~~~~
user.cpp:33:9: error: ‘arbint’ was not declared in this scope
arbint[nod1][nod] = maxim(arbint[nod1][2*nod + 1], arbint[nod1][2*nod]);
^~~~~~
user.cpp:35:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘int interogare(int, int, int, int, int)’:
user.cpp:40:15: error: ‘arbint’ was not declared in this scope
return arbint[nod];
^~~~~~
user.cpp:44:43: error: ‘inf’ was not declared in this scope
int mij =(st + dr) / 2, MaxLeft = inf, MaxRight = inf;
^~~
user.cpp:48:13: error: ‘MaxRight’ was not declared in this scope
MaxRight = interogare(2*nod + 1, mij+1, dr, a, b);
^~~~~~~~
user.cpp:49:22: error: ‘MaxRight’ was not declared in this scope
return maxim(MaxRight, MaxLeft);
^~~~~~~~
user.cpp: In function ‘void DFS_ARBORE(int, int)’:
user.cpp:58:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 0; i < v[nod].size(); i++)
~~^~~~~~~~~~~~~~~
user.cpp:78:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 0; i < v[nod].size(); i++)
~~^~~~~~~~~~~~~~~
user.cpp:84:49: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(lant[tata_nod[v[nod][i]]].size() > maxim)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
user.cpp: In function ‘void creezArbInt()’:
user.cpp:103:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0; j < lant[i].size(); j++)
~~^~~~~~~~~~~~~~~~
user.cpp:105:58: error: too few arguments to function ‘int actualizare(int, int, int, int, int, int)’
actualizare(k, 1, lant[i].size(), j+1, lant[i][j]);
^
user.cpp:22:5: note: declared here
int actualizare(int nod1, int nod, int st, int dr, int poz, int ce_nod)
^~~~~~~~~~~
user.cpp: In function ‘void afisare()’:
user.cpp:115:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0; j < lant[i].size(); j++)
~~^~~~~~~~~~~~~~~~
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !