Pagini recente »
Borderou de evaluare (job #761183)
Borderou de evaluare (job #761183)
Raport evaluator
Compilare:
main.c: In function 'main':
main.c:28:45: warning: unused variable 'j' [-Wunused-variable]
28 | int x,n,y,x1,y1,x2,y2,m,i,s = 1,l,c,p,dir,j;
| ^
main.c:29:3: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
29 | fscanf(fin,"%d%d",&m,&n);
| ^~~~~~~~~~~~~~~~~~~~~~~~
main.c:38:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
38 | fscanf(fin,"%d%d",&x,&y);
| ^~~~~~~~~~~~~~~~~~~~~~~~
main.c:42:3: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
42 | fscanf(fin,"%d%d%d%d",&x1,&y1,&x2,&y2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:46:19: warning: 'l' may be used uninitialized [-Wmaybe-uninitialized]
46 | while((st != fn || l != x2 || c != y2) && i < 100){
| ~~~~~~~~~^~~~~~~~~~
main.c:28:35: note: 'l' was declared here
28 | int x,n,y,x1,y1,x2,y2,m,i,s = 1,l,c,p,dir,j;
| ^
main.c:46:30: warning: 'c' may be used uninitialized [-Wmaybe-uninitialized]
46 | while((st != fn || l != x2 || c != y2) && i < 100){
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
main.c:28:37: note: 'c' was declared here
28 | int x,n,y,x1,y1,x2,y2,m,i,s = 1,l,c,p,dir,j;
| ^
Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
1
|
1 ms
|
245 kb
|
Incorect
|
0
|
2
|
1 ms
|
245 kb
|
Incorect
|
0
|
3
|
1 ms
|
245 kb
|
Incorect
|
0
|
4
|
1 ms
|
245 kb
|
Incorect
|
0
|
5
|
1 ms
|
245 kb
|
Incorect
|
0
|
6
|
1 ms
|
249 kb
|
Incorect
|
0
|
7
|
9 ms
|
249 kb
|
Incorect
|
0
|
8
|
1 ms
|
245 kb
|
Incorect
|
0
|
9
|
1 ms
|
245 kb
|
Incorect
|
0
|
10
|
1 ms
|
245 kb
|
Incorect
|
0
|
Punctaj total
|
0
|