Pagini recente » Borderou de evaluare (job #2538954) | Borderou de evaluare (job #2373720) | Borderou de evaluare (job #3188360) | Borderou de evaluare (job #2396922) | Borderou de evaluare (job #1805546)
Borderou de evaluare (job #1805546)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:47:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("orase1.in", "rt", stdin);
^
user.cpp:48:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("orase1.out", "wt", stdout);
^
user.cpp:49:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d\n",&N,&K);
^
user.cpp:53:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ",x+i);
^
user.cpp: In function ‘int findIndex(int*, int, int, int)’:
user.cpp:25:12: warning: ‘bestIdx’ may be used uninitialized in this function [-Wmaybe-uninitialized]
return bestIdx;
^
user.cpp: In function ‘bool findSolution(int*, int, int, int, int&)’:
user.cpp:37:41: warning: ‘bestIdx’ may be used uninitialized in this function [-Wmaybe-uninitialized]
i = 1 + findIndex(x, N, j, dMax);
^
user.cpp:9:20: warning: ‘bestIdx’ may be used uninitialized in this function [-Wmaybe-uninitialized]
int val = x[idx];
^
user.cpp:8:22: note: ‘bestIdx’ was declared here
int lo, hi, mid, bestIdx;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 264kb | OK | 10 | 10 |
2 | 0ms | 264kb | OK | 10 | 10 |
3 | 20ms | 656kb | OK | 10 | 10 |
4 | 48ms | 1048kb | OK | 10 | 10 |
5 | 116ms | 2604kb | OK | 10 | 10 |
6 | 132ms | 3000kb | OK | 10 | 10 |
7 | 152ms | 3396kb | OK | 10 | 30 |
8 | 180ms | 3780kb | OK | 10 |
9 | 204ms | 4164kb | OK | 10 |
10 | 0ms | 264kb | OK | 10 | 10 |
Punctaj total | 100 |