Borderou de evaluare (job #3256069)

Utilizator Carnu_EmilianCarnu Emilian Carnu_Emilian Data 13 noiembrie 2024 10:49:26
Problema Magic2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 50

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:69:107: warning: 'sl2' may be used uninitialized [-Wmaybe-uninitialized] 69 | fcout << l1 << ' ' << c2 << ' ' << l2 << ' ' << c1 << '\n' << s - sl1 + v[l1][c2] << ' ' << s - sl2 + v[l2][c1]; | ~~^~~~~ main.cpp:12:43: note: 'sl2' was declared here 12 | int s, c1, c2, l1, l2, sc1, sc2, sl1, sl2; | ^~~ main.cpp:69:77: warning: 'sl1' may be used uninitialized [-Wmaybe-uninitialized] 69 | fcout << l1 << ' ' << c2 << ' ' << l2 << ' ' << c1 << '\n' << s - sl1 + v[l1][c2] << ' ' << s - sl2 + v[l2][c1]; | ~~^~~~~ main.cpp:12:38: note: 'sl1' was declared here 12 | int s, c1, c2, l1, l2, sc1, sc2, sl1, sl2; | ^~~ main.cpp:68:31: warning: 'sc2' may be used uninitialized [-Wmaybe-uninitialized] 68 | if (sl2 == sc1 && sc2 == sl1) | ~~~~^~~~~~ main.cpp:12:33: note: 'sc2' was declared here 12 | int s, c1, c2, l1, l2, sc1, sc2, sl1, sl2; | ^~~ main.cpp:68:17: warning: 'sc1' may be used uninitialized [-Wmaybe-uninitialized] 68 | if (sl2 == sc1 && sc2 == sl1) | ~~~~^~~~~~ main.cpp:12:28: note: 'sc1' was declared here 12 | int s, c1, c2, l1, l2, sc1, sc2, sl1, sl2; | ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK10
20ms303kbIncorect0
30ms303kbOK10
40ms303kbIncorect0
50ms303kbOK10
60ms303kbOK10
70ms303kbIncorect0
80ms303kbIncorect0
90ms303kbOK10
100ms303kbIncorect0
Punctaj total50

Ceva nu functioneaza?