Borderou de evaluare (job #2377261)

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

Raport evaluator

Eroare de compilare: main.cpp:4:1: error: 'N' does not name a type N = 100010; ^ main.cpp:5:7: error: 'N' was not declared in this scope 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?