Borderou de evaluare (job #2537356)

Utilizator david_octavianoctavian david_octavian Data 3 februarie 2020 16:29:23
Problema Cautare binara Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:1:1: error: 'include' does not name a type include <stdio.h> ^~~~~~~ main.cpp: In function 'int bsearch1(int, int, int)': main.cpp:25:12: warning: unused variable 'n' [-Wunused-variable] int m, n = u; ^ main.cpp: In function 'int main()': main.cpp:61:30: error: 'stdin' was not declared in this scope freopen("cautbin.in","r",stdin); ^~~~~ main.cpp:61:35: error: 'freopen' was not declared in this scope freopen("cautbin.in","r",stdin); ^ main.cpp:62:31: error: 'stdout' was not declared in this scope freopen("cautbin.out","w",stdout); ^~~~~~ main.cpp:63:19: error: 'scanf' was not declared in this scope scanf("%d", &n); ^ main.cpp:72:48: error: 'printf' was not declared in this scope printf("%d\n", bsearch0(1, n, val)); ^ main.cpp:74:48: error: 'printf' was not declared in this scope printf("%d\n", bsearch1(1, n, val)); ^ main.cpp:76:48: error: 'printf' was not declared in this scope printf("%d\n", bsearch2(1, n, val)); ^ Non zero exit status: 1

Ceva nu functioneaza?