Pagini recente »
Borderou de evaluare (job #681886)
|
Borderou de evaluare (job #718967)
|
Borderou de evaluare (job #490467)
|
Borderou de evaluare (job #372455)
|
Borderou de evaluare (job #742525)
Borderou de evaluare (job #742525)
Raport evaluator
Compilare:
main.c: In function 'main':
main.c:18:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
18 | if(min>b)
| ^~
main.c:20:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
20 | printf("\ni=%d a=%d b=%d max=%d min=%d",i,a,b,max,min);}
| ^~~~~~
main.c:25:9: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
25 | else
| ^~~~
main.c:29:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
29 | fclose( fout );
| ^~~~~~
main.c:9:4: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | fscanf( fin, "%d", &n );
| ^~~~~~~~~~~~~~~~~~~~~~~
main.c:10:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
10 | fscanf( fin," \n%d %d", &a, &b);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:15:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
15 | fscanf( fin, "\n%d %d", &a, &b);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:13:5: warning: 'i' is used uninitialized [-Wuninitialized]
13 | printf("\ni=%d a=%d b=%d max=%d min=%d",i,a,b,max,min);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:7:11: note: 'i' was declared here
7 | int n, i, max, min, a, b;
| ^
main.c:24:17: warning: pointer 'fin' may be used after 'fclose' [-Wuse-after-free]
24 | fprintf( fin, "multime vida");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:21:13: note: call to 'fclose' here
21 | fclose( fin );
| ^~~~~~~~~~~~~
In file included from /usr/include/stdio.h:906,
from main.c:1:
In function 'fprintf',
inlined from 'main' at main.c:24:17:
/usr/include/bits/stdio2.h:79:10: warning: pointer 'fin' may be used after 'fclose' [-Wuse-after-free]
79 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
80 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
main.c: In function 'main':
main.c:21:13: note: call to 'fclose' here
21 | fclose( fin );
| ^~~~~~~~~~~~~
| Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
|
1
|
1 ms
|
245 kb
|
OK
|
10
|
|
2
|
1 ms
|
245 kb
|
OK
|
10
|
|
3
|
1 ms
|
245 kb
|
Incorect
|
0
|
|
4
|
1 ms
|
245 kb
|
OK
|
10
|
|
5
|
1 ms
|
245 kb
|
OK
|
10
|
|
6
|
1 ms
|
245 kb
|
Incorect
|
0
|
|
7
|
1 ms
|
245 kb
|
Incorect
|
0
|
|
8
|
9 ms
|
106 kb
|
OK
|
10
|
|
9
|
9 ms
|
135 kb
|
OK
|
10
|
|
10
|
1 ms
|
245 kb
|
Incorect
|
0
|
|
Punctaj total
|
60
|