Borderou de evaluare (job #2223052)

Utilizator inquisitorAnders inquisitor Data 18 iulie 2018 23:57:03
Problema Cautare binara Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:19:9: error: ‘logN’ was not declared in this scope for(logN = 1; logN <= N; logN <<= 1); ^~~~ user.cpp:29:22: error: ‘logN’ was not declared in this scope for(lg = logN, i = 0; lg; lg >>= 1) ^~~~ user.cpp:47:18: error: ‘logN’ was not declared in this scope for(lg = logN, i = N; lg; lg >>= 1) ^~~~ user.cpp:5:26: warning: unused variable ‘log2N’ [-Wunused-variable] int N, M, v[100005], log2N; ^~~~~ user.cpp:9:38: 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); ^ user.cpp:10:40: 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); ^ user.cpp:12:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &N); ^ user.cpp:16:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &v[i]); ^ user.cpp:21:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &M); ^ user.cpp:25:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &task, &value); ^

Ceva nu functioneaza?