Pagini recente » Borderou de evaluare (job #2630712) | Borderou de evaluare (job #1103286) | Borderou de evaluare (job #2798251) | Borderou de evaluare (job #3179669) | Borderou de evaluare (job #1217295)
Borderou de evaluare (job #1217295)
Raport evaluator
Compilare:
user.cpp: In function ‘int bsl(int)’:
user.cpp:26:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int bsh(int)’:
user.cpp:46:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:50:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("stalpisori.in","r", stdin);
^
user.cpp:51:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("stalpisori.out","w",stdout);
^
user.cpp:53:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &k);
^
user.cpp:55:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &v[i]);
^
user.cpp: In function ‘int bsl(int)’:
user.cpp:22:26: warning: ‘mid’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if(v[x] - v[mid]>=v[mid + k - 1] - v[x])
^
user.cpp: In function ‘int bsh(int)’:
user.cpp:42:33: warning: ‘mid’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if(v[mid] - v[x]>=v[x] - v[mid - k + 1])
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 248kb | OK | 5 |
| 2 | 0ms | 244kb | OK | 5 |
| 3 | 0ms | 248kb | OK | 5 |
| 4 | 0ms | 276kb | OK | 5 |
| 5 | 4ms | 272kb | OK | 5 |
| 6 | 4ms | 280kb | OK | 5 |
| 7 | 0ms | 264kb | OK | 5 |
| 8 | 4ms | 276kb | OK | 5 |
| 9 | 84ms | 848kb | OK | 5 |
| 10 | 80ms | 832kb | OK | 5 |
| 11 | 96ms | 984kb | OK | 5 |
| 12 | 80ms | 848kb | OK | 5 |
| 13 | 52ms | 668kb | OK | 5 |
| 14 | 92ms | 984kb | OK | 5 |
| 15 | Depăşit | 3824kb | Time limit exceeded. | 0 |
| 16 | Depăşit | 4024kb | Time limit exceeded. | 0 |
| 17 | Depăşit | 4128kb | Time limit exceeded. | 0 |
| 18 | Depăşit | 4128kb | Time limit exceeded. | 0 |
| 19 | Depăşit | 4124kb | Time limit exceeded. | 0 |
| 20 | Depăşit | 4120kb | Time limit exceeded. | 0 |
| Punctaj total | 70 |