Pagini recente » Borderou de evaluare (job #2327647) | Borderou de evaluare (job #2085785) | Borderou de evaluare (job #2853247) | Borderou de evaluare (job #3242799) | Borderou de evaluare (job #1333007)
Borderou de evaluare (job #1333007)
Raport evaluator
Compilare:
user.cpp: In function ‘void cautare(int, int)’:
user.cpp:18:8: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if (op==0)
^
user.cpp:25:8: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if (op==1)
^
user.cpp:32:8: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if (op==2)
^
user.cpp: In function ‘int main()’:
user.cpp:43:36: 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:44:38: 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:45:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:47:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ",&a[i]);
^
user.cpp:48:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&m);
^
user.cpp:51:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&op,&x);
^
user.cpp: In function ‘void cautare(int, int)’:
user.cpp:29:27: warning: ‘m’ may be used uninitialized in this function [-Wmaybe-uninitialized]
while (a[m]==x) m++;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 244kb | OK | 10 | 10 |
2 | 0ms | 248kb | OK | 10 | 10 |
3 | 0ms | 252kb | OK | 10 | 10 |
4 | 4ms | 248kb | OK | 10 | 10 |
5 | 24ms | 292kb | OK | 10 | 20 |
6 | 84ms | 448kb | OK | 10 |
7 | 124ms | 644kb | OK | 10 | 40 |
8 | 124ms | 644kb | OK | 10 |
9 | 128ms | 640kb | OK | 10 |
10 | 128ms | 640kb | OK | 10 |
Punctaj total | 100 |