Pagini recente » Borderou de evaluare (job #3341765) | Borderou de evaluare (job #3350630) | Borderou de evaluare (job #1729053) | Borderou de evaluare (job #3328714) | Borderou de evaluare (job #3144654)
Borderou de evaluare (job #3144654)
Raport evaluator
Compilare:
main.cpp: In function 'void BFSFill(Point, short int (*)[62])':
main.cpp:52:117: warning: array subscript has type 'char' [-Wchar-subscripts]
52 | if(m[cur.r + dir.r][cur.c + dir.c] != WALL && cost[cur.r + dir.r][cur.c + dir.c] > cost[cur.r][cur.c] + 1){
| ~~~~^
main.cpp:52:124: warning: array subscript has type 'char' [-Wchar-subscripts]
52 | if(m[cur.r + dir.r][cur.c + dir.c] != WALL && cost[cur.r + dir.r][cur.c + dir.c] > cost[cur.r][cur.c] + 1){
| ~~~~^
main.cpp:53:79: warning: array subscript has type 'char' [-Wchar-subscripts]
53 | cost[cur.r + dir.r][cur.c + dir.c] = cost[cur.r][cur.c] + 1;
| ~~~~^
main.cpp:53:86: warning: array subscript has type 'char' [-Wchar-subscripts]
53 | cost[cur.r + dir.r][cur.c + dir.c] = cost[cur.r][cur.c] + 1;
| ~~~~^
main.cpp:54:47: warning: narrowing conversion of '(((int)cur.Point::r) + ((int)dir.Point::r))' from 'int' to 'char' [-Wnarrowing]
54 | q.push({cur.r + dir.r, cur.c + dir.c});
| ~~~~~~^~~~~~~
main.cpp:54:62: warning: narrowing conversion of '(((int)cur.Point::c) + ((int)dir.Point::c))' from 'int' to 'char' [-Wnarrowing]
54 | q.push({cur.r + dir.r, cur.c + dir.c});
| ~~~~~~^~~~~~~
main.cpp: In function 'int main()':
main.cpp:112:50: warning: narrowing conversion of 'r' from 'int' to 'char' [-Wnarrowing]
112 | BFSFill({r, c}, fuel[pos[m[r][c] - OFFSET]][pos[m[r][c] - OFFSET]]);
| ^
main.cpp:112:53: warning: narrowing conversion of 'c' from 'int' to 'char' [-Wnarrowing]
112 | BFSFill({r, c}, fuel[pos[m[r][c] - OFFSET]][pos[m[r][c] - OFFSET]]);
| ^
main.cpp:126:66: warning: narrowing conversion of 'r' from 'int' to 'char' [-Wnarrowing]
126 | BFSFill({r, c}, fuel[i][j]);
| ^
main.cpp:126:69: warning: narrowing conversion of 'c' from 'int' to 'char' [-Wnarrowing]
126 | BFSFill({r, c}, fuel[i][j]);
| ^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 303kb | OK | 5 |
| 2 | 0ms | 303kb | OK | 5 |
| 3 | 0ms | 303kb | OK | 5 |
| 4 | 0ms | 303kb | OK | 5 |
| 5 | 0ms | 303kb | OK | 5 |
| 6 | 5ms | 303kb | OK | 5 |
| 7 | 8ms | 303kb | OK | 5 |
| 8 | 7ms | 303kb | OK | 5 |
| 9 | 0ms | 303kb | OK | 5 |
| 10 | 19ms | 557kb | OK | 5 |
| 11 | 1ms | 557kb | OK | 5 |
| 12 | 14ms | 303kb | OK | 5 |
| 13 | 2ms | 303kb | OK | 5 |
| 14 | 4ms | 557kb | OK | 5 |
| 15 | 2ms | 303kb | OK | 5 |
| 16 | 59ms | 557kb | Incorect | 0 |
| 17 | 74ms | 557kb | Incorect | 0 |
| 18 | 74ms | 557kb | Incorect | 0 |
| 19 | 74ms | 561kb | Incorect | 0 |
| 20 | 68ms | 557kb | Incorect | 0 |
| Punctaj total | 75 |