Pagini recente »
Borderou de evaluare (job #688350)
|
Borderou de evaluare (job #634249)
|
Borderou de evaluare (job #595188)
|
Clasament iulia_1
|
Borderou de evaluare (job #629863)
Borderou de evaluare (job #629863)
Raport evaluator
Compilare:
main.c: In function 'lee':
main.c:71:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
71 | if(harta[l+directiei[i]][c+directiej[i]]==gol && harta[l+directiei[i]][c+directiej[i]]!=OBST && dist[l+directiei[i]][c+directiej[i]]%END==0)
| ^~
main.c:75:15: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
75 | dist[l+directiei[i]][c+directiej[i]]+=d;
| ^~~~
main.c:53:20: warning: unused variable 'j2' [-Wunused-variable]
53 | int l,c,i,d,j1,j2;
| ^~
main.c:53:17: warning: unused variable 'j1' [-Wunused-variable]
53 | int l,c,i,d,j1,j2;
| ^~
main.c: In function 'main':
main.c:117:29: warning: array subscript has type 'char' [-Wchar-subscripts]
117 | ins[harta[l][c]]++;
| ~~~~~~~~^~~
main.c:143:46: warning: array subscript has type 'char' [-Wchar-subscripts]
143 | vec[harta[l+directiei[i]][c+directiej[i]]]++;
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
main.c:89:24: warning: unused variable 'j' [-Wunused-variable]
89 | int n,m,i,l,c,lpod,j;
| ^
main.c:93:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
93 | fscanf(fin,"%d%d\n",&n,&m);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:191:5: warning: array subscript 3 is above array bounds of 'int[3]' [-Warray-bounds]
191 | fprintf(fout,"%d %d %d %d",ins[1],ins[2],ins[3],lpod);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:11:34: note: while referencing 'ins'
11 | int coada[NCOADA],dist[101][101],ins[3],vec[3];
| ^~~
Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
1
|
2 ms
|
114 kb
|
Incorect
|
0
|
2
|
1 ms
|
114 kb
|
Incorect
|
0
|
3
|
1 ms
|
245 kb
|
Incorect
|
0
|
4
|
1 ms
|
241 kb
|
Incorect
|
0
|
5
|
1 ms
|
241 kb
|
Incorect
|
0
|
6
|
2 ms
|
245 kb
|
Incorect
|
0
|
7
|
1 ms
|
241 kb
|
Incorect
|
0
|
8
|
1 ms
|
241 kb
|
Incorect
|
0
|
9
|
1 ms
|
245 kb
|
Incorect
|
0
|
10
|
1 ms
|
241 kb
|
Incorect
|
0
|
Punctaj total
|
0
|