Pagini recente » Borderou de evaluare (job #2276106) | Borderou de evaluare (job #2260879) | Borderou de evaluare (job #854644) | Borderou de evaluare (job #2632762) | Borderou de evaluare (job #2334553)
Borderou de evaluare (job #2334553)
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 |
1 | 2ms | 131kb | OK | 10 | 10 |
2 | 2ms | 131kb | OK | 10 | 10 |
3 | 3ms | 131kb | OK | 10 | 10 |
4 | 6ms | 131kb | OK | 10 | 10 |
5 | 27ms | 262kb | OK | 10 | 20 |
6 | 84ms | 655kb | OK | 10 |
7 | 125ms | 1048kb | OK | 10 | 40 |
8 | 113ms | 1048kb | OK | 10 |
9 | 127ms | 1048kb | OK | 10 |
10 | 134ms | 1048kb | OK | 10 |
Punctaj total | 100 |