Pagini recente » Borderou de evaluare (job #3259603) | Borderou de evaluare (job #718444) | Borderou de evaluare (job #2447257) | Borderou de evaluare (job #1331541) | Borderou de evaluare (job #1055436)
Borderou de evaluare (job #1055436)
Raport evaluator
Compilare:
user.c: In function ‘main’:
user.c:8:5: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long unsigned int *’ [-Wformat=]
fscanf(f,"%d",&t);
^
user.c:9:5: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long unsigned int *’ [-Wformat=]
fscanf(f,"%d",&n);
^
user.c:10:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
printf("%d %d",t,n);
^
user.c:10:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
user.c:12:19: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘char (*)[20]’ [-Wformat=]
fscanf(f,"%s",&line);
^
user.c:22:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
fprintf(f,"%d %d %d",ct,cs,sr);
^
user.c:22:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long unsigned int’ [-Wformat=]
user.c:22:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘long unsigned int’ [-Wformat=]
user.c:5:27: warning: unused variable ‘i’ [-Wunused-variable]
unsigned long int t,n,i,s,sr=0,ct=0,cs=0,r;
^
user.c:16:19: warning: ‘r’ may be used uninitialized in this function [-Wmaybe-uninitialized]
switch(r){
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 240kb | Incorect | 0 |
Punctaj total | 0 |