Borderou de evaluare (job #2704476)

Utilizator AlexZeuVasile Alexandru AlexZeu Data 10 februarie 2021 17:34:02
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 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:78:12: error: expected '}' at end of input exit(0); ^ main.cpp:61:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("cautbin.in","r",stdin); ^ main.cpp:62:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("cautbin.out","w",stdout); ^ main.cpp:63:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ main.cpp:65:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &v[i]); ^ main.cpp:67:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &m); ^ main.cpp:70:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &tip, &val); ^ Non zero exit status: 1

Ceva nu functioneaza?