Borderou de evaluare (job #2355201)

Utilizator RK_05Ivancu Andreea Raluca RK_05 Data 25 februarie 2019 21:31:36
Problema Arbori de intervale Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void maxim(int, int)': main.cpp:16:22: error: return-statement with a value, in function returning 'void' [-fpermissive] if(a > b) return a; ^ main.cpp:17:12: error: return-statement with a value, in function returning 'void' [-fpermissive] return b; ^ main.cpp: In function 'void constructBT(int, int, int)': main.cpp:41:50: error: void value not ignored as it ought to be t[pos] = maxim(t[2 * pos + 1], t[pos * 2 + 2]); ^ main.cpp: In function 'int rangeMaxQuery(int, int, int, int, int)': main.cpp:50:123: error: void value not ignored as it ought to be return maxim(rangeMaxQuery(qlow, qhigh, low, mid, 2 * pos + 1), rangeMaxQuery(qlow, qhigh, mid + 1, high, 2 * pos + 2)); ^ Non zero exit status: 1

Ceva nu functioneaza?