Borderou de evaluare (job #2235140)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:163:22: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(f,1,MAX,IN);
^
user.cpp:77:70: warning: ‘last’ may be used uninitialized in this function [-Wmaybe-uninitialized]
Val+=Cost[dir][type][r]-Cost[dir][type][l-1]-1LL*(Cnt[type][r]-Cnt[type][l-1])*(l-1);
~~~~~~~~~~~^
user.cpp:101:27: note: ‘last’ was declared here
int lw=p,hi=N,mid,last;
^~~~
user.cpp:79:85: warning: ‘last’ may be used uninitialized in this function [-Wmaybe-uninitialized]
Val+=Cost[dir][type][l]-Cost[dir][type][r+1]-1LL*(Cnt[type][r]-Cnt[type][l-1])*(N-r);
~~~~~~~~~~~~~^
user.cpp:101:27: note: ‘last’ was declared here
int lw=p,hi=N,mid,last;
^~~~
user.cpp:77:70: warning: ‘last’ may be used uninitialized in this function [-Wmaybe-uninitialized]
Val+=Cost[dir][type][r]-Cost[dir][type][l-1]-1LL*(Cnt[type][r]-Cnt[type][l-1])*(l-1);
~~~~~~~~~~~^
user.cpp:101:27: note: ‘last’ was declared here
int lw=p,hi=N,mid,last;
^~~~
user.cpp:79:85: warning: ‘last’ may be used uninitialized in this function [-Wmaybe-uninitialized]
Val+=Cost[dir][type][l]-Cost[dir][type][r+1]-1LL*(Cnt[type][r]-Cnt[type][l-1])*(N-r);
~~~~~~~~~~~~~^
user.cpp:101:27: note: ‘last’ was declared here
int lw=p,hi=N,mid,last;
^~~~
user.cpp:77:70: warning: ‘last’ may be used uninitialized in this function [-Wmaybe-uninitialized]
Val+=Cost[dir][type][r]-Cost[dir][type][l-1]-1LL*(Cnt[type][r]-Cnt[type][l-1])*(l-1);
~~~~~~~~~~~^
user.cpp:101:27: note: ‘last’ was declared here
int lw=p,hi=N,mid,last;
^~~~
user.cpp:79:85: warning: ‘last’ may be used uninitialized in this function [-Wmaybe-uninitialized]
Val+=Cost[dir][type][l]-Cost[dir][type][r+1]-1LL*(Cnt[type][r]-Cnt[type][l-1])*(N-r);
~~~~~~~~~~~~~^
user.cpp:101:27: note: ‘last’ was declared here
int lw=p,hi=N,mid,last;
^~~~
 | Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
✓ | 1 | 8ms | 15660kb | OK | 5 | 20 |
✓ | 2 | 8ms | 15664kb | OK | 5 |
✓ | 3 | 8ms | 15664kb | OK | 5 |
✓ | 4 | 8ms | 15660kb | OK | 5 |
✓ | 5 | 124ms | 17840kb | OK | 5 | 20 |
✓ | 6 | 124ms | 17836kb | OK | 5 |
✓ | 7 | 124ms | 17832kb | OK | 5 |
✓ | 8 | 120ms | 17836kb | OK | 5 |
✓ | 9 | 152ms | 17836kb | OK | 5 | 20 |
✓ | 10 | 156ms | 17836kb | OK | 5 |
✓ | 11 | 152ms | 17836kb | OK | 5 |
✓ | 12 | 152ms | 17836kb | OK | 5 |
✗ | 13 | 584ms | 17832kb | OK | 5 | 20 |
✗ | 14 | 584ms | 17832kb | OK | 5 |
✗ | 15 | 588ms | 17836kb | OK | 5 |
✓ | 16 | 588ms | 17832kb | OK | 5 |
✓ | 17 | 996ms | 18032kb | OK | 5 | 20 |
✗ | 18 | 992ms | 18036kb | OK | 5 |
✗ | 19 | 996ms | 18032kb | OK | 5 |
✗ | 20 | 988ms | 18032kb | OK | 5 |
Punctaj total | 100 |