Borderou de evaluare (job #2616989)
Utilizator | Data | 20 mai 2020 15:56:37 | |
---|---|---|---|
Problema | Heapuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void pop(int)':
main.cpp:20:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if( i*2 + 1 >= H.size())
~~~~~~~~^~~~~~~~~~~
main.cpp:20:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if( i*2 + 1 >= H.size())
^~
main.cpp:22:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
P[H[i]] = i;
^
main.cpp:24:5: error: 'else' without a previous 'if'
else{
^~~~
main.cpp:28:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while( i * 2 + 1 < H.size() ){
~~~~~~~~~~^~~~~~~~~~
main.cpp:32:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( i * 2 + 2 < H.size() ){
~~~~~~~~~~^~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !