Pagini recente » Borderou de evaluare (job #1643394) | Borderou de evaluare (job #748704) | Borderou de evaluare (job #2477272) | Borderou de evaluare (job #1668452) | Borderou de evaluare (job #2955714)
Borderou de evaluare (job #2955714)
Raport evaluator
Compilare:
main.cpp: In function 'void Lee2()':
main.cpp:42:29: warning: array subscript 2 is above array bounds of 'int [2]' [-Warray-bounds]
42 | dist[start.x][start.y][2]=1;
| ~~~~~~~~~~~~~~~~~~~~~~~~^
main.cpp:43:29: warning: array subscript 2 is above array bounds of 'int [2]' [-Warray-bounds]
43 | drum[start.x][start.y][2]=1;
| ~~~~~~~~~~~~~~~~~~~~~~~~^
main.cpp:48:67: warning: array subscript 2 is above array bounds of 'int [2]' [-Warray-bounds]
48 | if(iv>=1 && jv>=1 && iv<=n && jv<=m && (dist[iv][jv][2]==0||dist[iv][jv][2]>dist[i][j][2]+1)){
| ~~~~~~~~~~~~~~^
main.cpp:48:101: warning: array subscript 2 is above array bounds of 'int [2]' [-Warray-bounds]
48 | if(iv>=1 && jv>=1 && iv<=n && jv<=m && (dist[iv][jv][2]==0||dist[iv][jv][2]>dist[i][j][2]+1)){
| ~~~~~~~~~~~~^
main.cpp:49:45: warning: array subscript 2 is above array bounds of 'int [2]' [-Warray-bounds]
49 | dist[iv][jv][2]=dist[i][j][2]+1;
| ~~~~~~~~~~~~^
main.cpp:49:31: warning: array subscript 2 is above array bounds of 'int [2]' [-Warray-bounds]
49 | dist[iv][jv][2]=dist[i][j][2]+1;
| ~~~~~~~~~~~~~~^
main.cpp:50:45: warning: array subscript 2 is above array bounds of 'int [2]' [-Warray-bounds]
50 | drum[iv][jv][2]=drum[i][j][2];
| ~~~~~~~~~~~~^
main.cpp:51:32: warning: array subscript 2 is above array bounds of 'int [2]' [-Warray-bounds]
51 | drum[iv][jv][2]%=997;
| ~~~~~~~~~~~~~~~^~~~~
main.cpp:53:72: warning: array subscript 2 is above array bounds of 'int [2]' [-Warray-bounds]
53 | }else if(iv>=1 && jv>=1 && iv<=n && jv<=m && dist[iv][jv][2]==dist[i][j][2]+1){
| ~~~~~~~~~~~~~~^
main.cpp:53:87: warning: array subscript 2 is above array bounds of 'int [2]' [-Warray-bounds]
53 | }else if(iv>=1 && jv>=1 && iv<=n && jv<=m && dist[iv][jv][2]==dist[i][j][2]+1){
| ~~~~~~~~~~~~^
main.cpp:54:32: warning: array subscript 2 is above array bounds of 'int [2]' [-Warray-bounds]
54 | drum[iv][jv][2]+=drum[i][j][2];
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
main.cpp:54:46: warning: array subscript 2 is above array bounds of 'int [2]' [-Warray-bounds]
54 | drum[iv][jv][2]+=drum[i][j][2];
| ~~~~~~~~~~~~^
main.cpp:55:32: warning: array subscript 2 is above array bounds of 'int [2]' [-Warray-bounds]
55 | drum[iv][jv][2]%=997;
| ~~~~~~~~~~~~~~~^~~~~
main.cpp: In function 'int main()':
main.cpp:70:62: warning: array subscript 2 is above array bounds of 'int [2]' [-Warray-bounds]
70 | if(dist[finish.x][finish.y][1]<dist[finish.x][finish.y][2]){
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^
main.cpp:75:95: warning: array subscript 2 is above array bounds of 'int [2]' [-Warray-bounds]
75 | fout<<dist[start.x][start.y][1]+dist[finish.x][finish.y][1]-1+dist[start.x][start.y][2]+dist[finish.x][finish.y][2]-1<<"\n"<<drum[start.x][start.y][1]*drum[finish.x][finish.y][1]+drum[start.x][start.y][2]*drum[finish.x][finish.y][2];
| ~~~~~~~~~~~~~~~~~~~~~~~~^
main.cpp:75:212: warning: array subscript 2 is above array bounds of 'int [2]' [-Warray-bounds]
75 | fout<<dist[start.x][start.y][1]+dist[finish.x][finish.y][1]-1+dist[start.x][start.y][2]+dist[finish.x][finish.y][2]-1<<"\n"<<drum[start.x][start.y][1]*drum[finish.x][finish.y][1]+drum[start.x][start.y][2]*drum[finish.x][finish.y][2];
| ~~~~~~~~~~~~~~~~~~~~~~~~^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 184kb | Incorrect number of paths | 3 |
| 2 | 0ms | 184kb | Incorrect number of paths | 3 |
| 3 | 0ms | 184kb | Incorrect number of paths | 3 |
| 4 | 0ms | 184kb | Incorrect number of paths | 3 |
| 5 | 0ms | 184kb | Incorrect distance | 0 |
| 6 | 0ms | 184kb | Incorrect number of paths | 3 |
| 7 | 0ms | 184kb | Incorrect number of paths | 3 |
| 8 | 0ms | 184kb | Incorrect number of paths | 3 |
| 9 | 0ms | 184kb | Incorrect number of paths | 3 |
| 10 | 0ms | 184kb | Incorrect distance | 0 |
| Punctaj total | 24 |