Pagini recente » Borderou de evaluare (job #820221) | Borderou de evaluare (job #975761) | Borderou de evaluare (job #2397510) | Borderou de evaluare (job #2064935) | Borderou de evaluare (job #2485486)
Borderou de evaluare (job #2485486)
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 | 2ms | 131kb | Corect | 4 |
| 2 | 3ms | 131kb | Corect | 3 |
| 3 | 3ms | 131kb | Corect | 3 |
| 4 | 4ms | 131kb | Corect | 4 |
| 5 | 4ms | 131kb | Incorect | 0 |
| 6 | 5ms | 262kb | Incorect | 0 |
| 7 | 7ms | 262kb | Incorect | 0 |
| 8 | 7ms | 262kb | Incorect | 0 |
| 9 | 6ms | 262kb | Incorect | 0 |
| 10 | 5ms | 262kb | Corect | 5 |
| 11 | 6ms | 262kb | Incorect | 0 |
| 12 | 7ms | 262kb | Corect | 5 |
| 13 | 91ms | 3145kb | Incorect | 0 |
| 14 | 76ms | 3276kb | Incorect | 0 |
| 15 | 100ms | 3407kb | Incorect | 0 |
| 16 | 146ms | 4673kb | Incorect | 0 |
| 17 | 143ms | 4775kb | Incorect | 0 |
| 18 | 178ms | 4849kb | Incorect | 0 |
| 19 | 140ms | 5521kb | Incorect | 0 |
| 20 | 188ms | 5234kb | Incorect | 0 |
| 21 | 127ms | 5513kb | Incorect | 0 |
| 22 | 166ms | 5505kb | Incorect | 0 |
| Punctaj total | 24 |