Pagini recente » Borderou de evaluare (job #2229792) | Borderou de evaluare (job #2249540) | Borderou de evaluare (job #1186727) | Borderou de evaluare (job #1987689) | Borderou de evaluare (job #3144658)
Borderou de evaluare (job #3144658)
Raport evaluator
Compilare:
main.cpp: In function 'void BFSFill(Point, int (*)[62])':
main.cpp:54:117: warning: array subscript has type 'char' [-Wchar-subscripts]
54 | 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:54:124: warning: array subscript has type 'char' [-Wchar-subscripts]
54 | 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:55:79: warning: array subscript has type 'char' [-Wchar-subscripts]
55 | cost[cur.r + dir.r][cur.c + dir.c] = cost[cur.r][cur.c] + 1;
| ~~~~^
main.cpp:55:86: warning: array subscript has type 'char' [-Wchar-subscripts]
55 | cost[cur.r + dir.r][cur.c + dir.c] = cost[cur.r][cur.c] + 1;
| ~~~~^
main.cpp:56:47: warning: narrowing conversion of '(((int)cur.Point::r) + ((int)dir.Point::r))' from 'int' to 'char' [-Wnarrowing]
56 | q.push({cur.r + dir.r, cur.c + dir.c});
| ~~~~~~^~~~~~~
main.cpp:56:62: warning: narrowing conversion of '(((int)cur.Point::c) + ((int)dir.Point::c))' from 'int' to 'char' [-Wnarrowing]
56 | q.push({cur.r + dir.r, cur.c + dir.c});
| ~~~~~~^~~~~~~
main.cpp: In function 'int main()':
main.cpp:114:50: warning: narrowing conversion of 'r' from 'int' to 'char' [-Wnarrowing]
114 | BFSFill({r, c}, fuel[pos[m[r][c] - OFFSET]][pos[m[r][c] - OFFSET]]);
| ^
main.cpp:114:53: warning: narrowing conversion of 'c' from 'int' to 'char' [-Wnarrowing]
114 | BFSFill({r, c}, fuel[pos[m[r][c] - OFFSET]][pos[m[r][c] - OFFSET]]);
| ^
main.cpp:128:66: warning: narrowing conversion of 'r' from 'int' to 'char' [-Wnarrowing]
128 | BFSFill({r, c}, fuel[i][j]);
| ^
main.cpp:128:69: warning: narrowing conversion of 'c' from 'int' to 'char' [-Wnarrowing]
128 | 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 | 9ms | 303kb | OK | 5 |
8 | 9ms | 512kb | OK | 5 |
9 | 0ms | 303kb | OK | 5 |
10 | 24ms | 557kb | OK | 5 |
11 | 1ms | 557kb | OK | 5 |
12 | 19ms | 557kb | OK | 5 |
13 | 2ms | 303kb | OK | 5 |
14 | 5ms | 557kb | OK | 5 |
15 | 2ms | 303kb | OK | 5 |
16 | 59ms | 1081kb | Incorect | 0 |
17 | 84ms | 1081kb | Incorect | 0 |
18 | 98ms | 1081kb | Incorect | 0 |
19 | 84ms | 1081kb | Incorect | 0 |
20 | 64ms | 1081kb | Incorect | 0 |
Punctaj total | 75 |