Borderou de evaluare (job #2967376)

Utilizator Anastasia7Anastasia Anastasia7 Data 19 ianuarie 2023 15:03:02
Problema Cuplaj maxim in graf bipartit Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'bool validareTabla()': main.cpp:35:26: warning: iteration 2 invokes undefined behavior [-Waggressive-loop-optimizations] 35 | if(tabla[i][j]==1) | ~~~~~~~~~~^ main.cpp:33:24: note: within this loop 33 | for (int j=1; j<=3; ++j) | ~^~~ main.cpp: In function 'int rezultatJoc()': main.cpp:59:26: warning: iteration 2 invokes undefined behavior [-Waggressive-loop-optimizations] 59 | if(tabla[i][j]==1) | ~~~~~~~~~~^ main.cpp:57:23: note: within this loop 57 | for(int j=1; j<=3; ++j) | ~^~~ main.cpp:67:30: warning: iteration 2 invokes undefined behavior [-Waggressive-loop-optimizations] 67 | numar+=tabla[i][j]*power3[(i-1)*3+j-1]; // calculam indexul situatiei de rezultatJoc in care suntem acum | ~~~~~~~~~~^ main.cpp:66:23: note: within this loop 66 | for(int j=1; j<=3; j++) | ~^~~ main.cpp:111:31: warning: iteration 2 invokes undefined behavior [-Waggressive-loop-optimizations] 111 | if (tabla[i][j]==0) | ~~~~~~~~~~^ main.cpp:110:27: note: within this loop 110 | for(int j=1; j<=3; j++) | ~^~~ main.cpp:95:31: warning: iteration 2 invokes undefined behavior [-Waggressive-loop-optimizations] 95 | if (tabla[i][j]==0) | ~~~~~~~~~~^ main.cpp:94:27: note: within this loop 94 | for(int j=1; j<=3; ++j) | ~^~~ main.cpp: In function 'int main()': main.cpp:143:20: warning: array subscript 3 is above array bounds of 'int [3][3]' [-Warray-bounds] 143 | tabla[3][i+1]=carac[z[i]]; | ~~~~~~~^ main.cpp:8:5: note: while referencing 'tabla' 8 | int tabla[3][3]; | ^~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms184kbFisier de iesire inexistent0
20ms184kbFisier de iesire inexistent0
30ms184kbFisier de iesire inexistent0
40ms184kbFisier de iesire inexistent0
50ms184kbFisier de iesire inexistent0
60ms184kbFisier de iesire inexistent0
70ms184kbFisier de iesire inexistent0
80ms184kbFisier de iesire inexistent0
90ms184kbFisier de iesire inexistent0
100ms184kbFisier de iesire inexistent0
Punctaj total0

Ceva nu functioneaza?