Pagini recente » Borderou de evaluare (job #932595) | Borderou de evaluare (job #20069) | Borderou de evaluare (job #359994) | Borderou de evaluare (job #2751816) | Borderou de evaluare (job #1830165)
Borderou de evaluare (job #1830165)
Raport evaluator
Compilare:
user.c: In function ‘citire’:
user.c:6:5: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long long int *’ [-Wformat=]
scanf("%d %d",a,b);
^
user.c:6:5: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long long int *’ [-Wformat=]
user.c:7:20: warning: comparison between pointer and integer [enabled by default]
if(a == 0 || a == 1) a = 2;
^
user.c:7:28: warning: assignment makes pointer from integer without a cast [enabled by default]
if(a == 0 || a == 1) a = 2;
^
user.c: In function ‘mod8’:
user.c:11:18: warning: suggest parentheses around ‘+’ in operand of ‘&’ [-Wparentheses]
return i & 1 + i & 2 + i & 4;
^
user.c:11:26: warning: suggest parentheses around ‘+’ in operand of ‘&’ [-Wparentheses]
return i & 1 + i & 2 + i & 4;
^
user.c: In function ‘main’:
user.c:96:5: warning: passing argument 1 of ‘citire’ from incompatible pointer type [enabled by default]
citire(&a,&b);
^
user.c:4:6: note: expected ‘long long int *’ but argument is of type ‘int *’
void citire(long long *a,long long *b)
^
user.c:96:5: warning: passing argument 2 of ‘citire’ from incompatible pointer type [enabled by default]
citire(&a,&b);
^
user.c:4:6: note: expected ‘long long int *’ but argument is of type ‘int *’
void citire(long long *a,long long *b)
^
user.c: In function ‘citire’:
user.c:6:10: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",a,b);
^
user.c: In function ‘main’:
user.c:94:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("difprim.in","r",stdin);
^
user.c:95:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("difprim.out","w",stdout);
^
user.c: In function ‘afisare’:
user.c:77:24: warning: ‘prevPrim’ may be used uninitialized in this function [-Wmaybe-uninitialized]
*prim1 = prevPrim;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 272kb | Incorect | 0 |
2 | 0ms | 272kb | Incorect | 0 |
3 | 0ms | 264kb | Incorect | 0 |
4 | 0ms | 276kb | Incorect | 0 |
5 | 28ms | 512kb | Incorect | 0 |
6 | 96ms | 1240kb | Incorect | 0 |
7 | 96ms | 1368kb | OK | 10 |
8 | 56ms | 748kb | Incorect | 0 |
9 | 120ms | 1260kb | Incorect | 0 |
10 | 152ms | 1484kb | Incorect | 0 |
Punctaj total | 10 |