Borderou de evaluare (job #2900505)

Utilizator AlexePaulAlexe Paul AlexePaul Data 10 mai 2022 22:47:02
Problema Range minimum query Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:10:1: error: expected ',' or ';' before 'const' 10 | const int LOG = 20 | ^~~~~ main.cpp: In function 'int findMin(int, int)': main.cpp:22:13: error: 'rmq' was not declared in this scope 22 | return min(rmq[x][c], rmq[y-h+1][c]); | ^~~ main.cpp: In function 'int main()': main.cpp:26:9: error: 'N' was not declared in this scope 26 | fin >> N >> M; | ^ main.cpp:26:14: error: 'M' was not declared in this scope 26 | fin >> N >> M; | ^ main.cpp:28:10: error: 'rmq' was not declared in this scope 28 | fin >> rmq[i][0]; | ^~~ main.cpp:30:21: error: 'LOG' was not declared in this scope 30 | for(int j = 1; j < LOG; ++j){ | ^~~ main.cpp:32:4: error: 'rmq' was not declared in this scope 32 | rmq[i][j] = min(rmq[i][j-1],rmq[i+(1<<(j-1))][j-1]); // construiesc sparse table-ul in O(nlog(n)) | ^~~ main.cpp:36:10: error: 'x' was not declared in this scope 36 | fin >> x >> y; | ^ main.cpp:36:15: error: 'y' was not declared in this scope 36 | fin >> x >> y; | ^ main.cpp:41:12: error: 'rmq' was not declared in this scope 41 | cout << rmq[i][j] << ' '; | ^~~ Non zero exit status: 1

Ceva nu functioneaza?