Borderou de evaluare (job #2430713)

Utilizator Rufus007Marincia Catalin Rufus007 Data 15 iunie 2019 22:37:44
Problema Cautare binara Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int oper_0(int*, int, int)': main.cpp:15:24: error: 'N' was not declared in this scope if (a[i] != value||i>N-1) ^ main.cpp: In function 'int oper_2(int*, int, int)': main.cpp:34:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for (i = 0; step; step >>= 1) ^~~ main.cpp:38:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' if(i==0&&a[i]>=value) ^~ main.cpp: In function 'int oper_0(int*, int, int)': main.cpp:19:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ Non zero exit status: 1

Ceva nu functioneaza?