Borderou de evaluare (job #2377251)

Utilizator Narcis_SimbuanNarcis Simbuan Narcis_Simbuan Data 9 martie 2019 03:57:46
Problema Cautare binara Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:10:8: error: array bound is not an integer constant before ']' token int v[N]; ^ main.cpp: In function 'int bsearch0(int, int, int)': main.cpp:19:13: error: 'v' was not declared in this scope if (v[m] <= key) ^ main.cpp:25:9: error: 'v' was not declared in this scope if (v[m] > key) m--; ^ main.cpp:26:9: error: 'v' was not declared in this scope if (v[m] == key) ^ main.cpp: In function 'int bsearch1(int, int, int)': main.cpp:37:13: error: 'v' was not declared in this scope if (v[m] <= key) ^ main.cpp:43:9: error: 'v' was not declared in this scope if (v[m] > key) --m; ^ main.cpp:33:12: warning: unused variable 'n' [-Wunused-variable] int m, n = u; ^ main.cpp: In function 'int bsearch2(int, int, int)': main.cpp:53:13: error: 'v' was not declared in this scope if (v[m] < key) ^ main.cpp:60:9: error: 'v' was not declared in this scope if (v[m] < key) ++m; ^ main.cpp: In function 'int main()': main.cpp:69:14: error: 'v' was not declared in this scope fin>>v[i]; ^ Non zero exit status: 1

Ceva nu functioneaza?