Pagini recente » Borderou de evaluare (job #611778) | Borderou de evaluare (job #38325) | Borderou de evaluare (job #1656011) | Borderou de evaluare (job #2568461) | Borderou de evaluare (job #1842601)
Borderou de evaluare (job #1842601)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:55:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cautbin.in","r",stdin);
^
user.cpp:56:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cautbin.out","w",stdout);
^
user.cpp:59:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lu",&n);
^
user.cpp:62:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lu",&a[i]);
^
user.cpp:66:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lu",&m);
^
user.cpp:68:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%hd %lu",&question,&x);
^
user.cpp: In function ‘long unsigned int bin_search_1(long unsigned int, long unsigned int, long unsigned int*, long unsigned int)’:
user.cpp:34:15: warning: ‘pos’ may be used uninitialized in this function [-Wmaybe-uninitialized]
while(a[pos+1]<=x&&pos<end-1)
^
user.cpp: In function ‘long unsigned int bin_search_2(long unsigned int, long unsigned int, long unsigned int*, long unsigned int)’:
user.cpp:50:8: warning: ‘pos’ may be used uninitialized in this function [-Wmaybe-uninitialized]
pos--;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 272kb | Incorect | 0 | 0 |
2 | 0ms | 276kb | Incorect | 0 | 0 |
3 | 0ms | 276kb | Incorect | 0 | 0 |
4 | 4ms | 280kb | Incorect | 0 | 0 |
5 | 24ms | 312kb | Incorect | 0 | 0 |
6 | 76ms | 472kb | Incorect | 0 |
7 | 116ms | 660kb | Incorect | 0 | 0 |
8 | 120ms | 660kb | Incorect | 0 |
9 | 120ms | 660kb | Incorect | 0 |
10 | 124ms | 664kb | Incorect | 0 |
Punctaj total | 0 |