Pagini recente » Borderou de evaluare (job #756280) | Borderou de evaluare (job #2174034) | Borderou de evaluare (job #3219188) | Borderou de evaluare (job #1017838) | Borderou de evaluare (job #2485497)
Borderou de evaluare (job #2485497)
Raport evaluator
Compilare:
main.cpp: In function 'int Update(int, int, int)':
main.cpp:88:88: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if(T[node].val > T[2 * node + 1].val || T[2 * node].val == T[2 * node + 1].val && T[2 * node].index > T[2 * node + 1].index){
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:93:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
main.cpp: In function 'int Query(int, int, int)':
main.cpp:97:60: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if(ans.val > T[node].val || ans.val == T[node].val && ans.index > T[node].index){
~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:106:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
main.cpp: In function 'void Read(int&)':
main.cpp:35:42: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fread(f, MAX, 1, IN), pos = 0;
^
main.cpp:40:42: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fread(f, MAX, 1, IN), pos = 0;
^
main.cpp: In function 'int binsearch(int, int, int)':
main.cpp:75:12: warning: 'last' may be used uninitialized in this function [-Wmaybe-uninitialized]
return last;
^~~~
main.cpp: In function 'int main()':
main.cpp:128:18: warning: 'last' may be used uninitialized in this function [-Wmaybe-uninitialized]
A = 1; B = binsearch(1, N, v[i].x);
~~^~~~~~~~~~~~~~~~~~~~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 3ms | 131kb | Corect | 4 |
2 | 3ms | 131kb | Corect | 3 |
3 | 3ms | 131kb | Corect | 3 |
4 | 3ms | 131kb | Corect | 4 |
5 | 3ms | 131kb | Corect | 6 |
6 | 7ms | 262kb | Corect | 6 |
7 | 6ms | 262kb | Corect | 6 |
8 | 6ms | 294kb | Corect | 5 |
9 | 5ms | 262kb | Corect | 5 |
10 | 6ms | 262kb | Corect | 5 |
11 | 6ms | 307kb | Corect | 5 |
12 | 7ms | 262kb | Corect | 5 |
13 | 97ms | 3145kb | Corect | 2 |
14 | 75ms | 3276kb | Corect | 5 |
15 | 126ms | 3383kb | Corect | 3 |
16 | 128ms | 4587kb | Corect | 4 |
17 | 129ms | 4718kb | Corect | 5 |
18 | 143ms | 4849kb | Corect | 3 |
19 | 117ms | 5505kb | Corect | 6 |
20 | 197ms | 5230kb | Corect | 5 |
21 | 124ms | 5505kb | Corect | 6 |
22 | 164ms | 5505kb | Corect | 4 |
Punctaj total | 100 |