Pagini recente » Borderou de evaluare (job #789696) | Borderou de evaluare (job #2881187) | Borderou de evaluare (job #989202) | Borderou de evaluare (job #35193) | Borderou de evaluare (job #3258231)
Borderou de evaluare (job #3258231)
Raport evaluator
Compilare:
main.c: In function 'main':
main.c:49:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
49 | for(i=0;i<n;i++);
| ^~~
main.c:50:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
50 | {
| ^
main.c:51:16: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types]
51 | fscanf("%d", &a, &b);
| ^~~~
| |
| char *
In file included from main.c:1:
/usr/include/stdio.h:415:37: note: expected 'FILE * restrict' but argument is of type 'char *'
415 | extern int fscanf (FILE *__restrict __stream,
| ~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:51:22: warning: passing argument 2 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types]
51 | fscanf("%d", &a, &b);
| ^~
| |
| int *
/usr/include/stdio.h:416:43: note: expected 'const char * restrict' but argument is of type 'int *'
416 | const char *__restrict __format, ...) __wur;
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:52:17: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types]
52 | fprintf("%d\n", cmmdc(a,b));
| ^~~~~~
| |
| char *
/usr/include/stdio.h:350:38: note: expected 'FILE * restrict' but argument is of type 'char *'
350 | extern int fprintf (FILE *__restrict __stream,
| ~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:52:25: warning: passing argument 2 of 'fprintf' makes pointer from integer without a cast [-Wint-conversion]
52 | fprintf("%d\n", cmmdc(a,b));
| ^~~~~~~~~~
| |
| int
/usr/include/stdio.h:351:44: note: expected 'const char * restrict' but argument is of type 'int'
351 | const char *__restrict __format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:45:13: warning: variable 'w' set but not used [-Wunused-but-set-variable]
45 | FILE*r,*w;
| ^
main.c:45:10: warning: variable 'r' set but not used [-Wunused-but-set-variable]
45 | FILE*r,*w;
| ^
main.c:49:14: warning: 'n' is used uninitialized [-Wuninitialized]
49 | for(i=0;i<n;i++);
| ~^~
main.c:48:9: note: 'n' was declared here
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 376kb | Killed by Signal 8 | 0 | 0 |
2 | 2ms | 376kb | Killed by Signal 8 | 0 | 0 |
3 | 1ms | 372kb | Killed by Signal 8 | 0 |
4 | 2ms | 372kb | Killed by Signal 8 | 0 | 0 |
5 | 2ms | 368kb | Killed by Signal 8 | 0 | 0 |
6 | 2ms | 372kb | Killed by Signal 8 | 0 | 0 |
7 | 2ms | 368kb | Killed by Signal 8 | 0 | 0 |
8 | 2ms | 368kb | Killed by Signal 8 | 0 |
9 | 2ms | 372kb | Killed by Signal 8 | 0 |
10 | 2ms | 368kb | Killed by Signal 8 | 0 |
Punctaj total | 0 |