Borderou de evaluare (job #2334553)

Utilizator ssssismana andrei stefan ssss Data 2 februarie 2019 18:18:23
Problema Cautare binara Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int cautbin(int, int)': main.cpp:12:1: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(int a = (1 << 20); a > 0; a /= 2) ^~~ main.cpp:15:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' if(v[pos] == val) ^~ main.cpp: In function 'int cautbin1(int, int)': main.cpp:22:1: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(int a = (1 << 20); a > 0; a /= 2) ^~~ main.cpp:25:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' if(v[pos] <= val) ^~ main.cpp: In function 'int cautbin2(int, int)': main.cpp:32:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if(pos + a <= n && v[pos + a] <= val) ^~ main.cpp:34:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' while(v[pos] == val) ^~~~~ main.cpp: In function 'int main()': main.cpp:45:15: warning: unused variable 'dr' [-Wunused-variable] int n, m, dr, st, i, a, b; ^~ main.cpp:45:19: warning: unused variable 'st' [-Wunused-variable] int n, m, dr, st, i, a, b; ^~ main.cpp: In function 'int cautbin1(int, int)': main.cpp:27:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
12ms131kbOK1010
22ms131kbOK1010
33ms131kbOK1010
46ms131kbOK1010
527ms262kbOK1020
684ms655kbOK10
7125ms1048kbOK1040
8113ms1048kbOK10
9127ms1048kbOK10
10134ms1048kbOK10
Punctaj total100

Ceva nu functioneaza?