Borderou de evaluare (job #2955714)

Utilizator Robert_NicuNicu Robert Cristian Robert_Nicu Data 17 decembrie 2022 17:38:16
Problema Poarta Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 24

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
10ms184kbIncorrect number of paths3
20ms184kbIncorrect number of paths3
30ms184kbIncorrect number of paths3
40ms184kbIncorrect number of paths3
50ms184kbIncorrect distance0
60ms184kbIncorrect number of paths3
70ms184kbIncorrect number of paths3
80ms184kbIncorrect number of paths3
90ms184kbIncorrect number of paths3
100ms184kbIncorrect distance0
Punctaj total24

Ceva nu functioneaza?