Borderou de evaluare (job #3284199)

Utilizator Carnu_EmilianCarnu Emilian Carnu_Emilian Data 11 martie 2025 11:20:57
Problema Split Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:83:21: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 83 | else if (im == imax) | ^ main.cpp:92:63: warning: 'kmax' may be used uninitialized [-Wmaybe-uninitialized] 92 | fcout << costmax << '\n' << imax << ' ' << jmax << ' ' << kmax; | ^~~~ main.cpp:11:24: note: 'kmax' was declared here 11 | int n, imax, jmax, kmax, costmax, minn, maxx, cost; | ^~~~ main.cpp:92:56: warning: 'jmax' may be used uninitialized [-Wmaybe-uninitialized] 92 | fcout << costmax << '\n' << imax << ' ' << jmax << ' ' << kmax; | ^~~ main.cpp:11:18: note: 'jmax' was declared here 11 | int n, imax, jmax, kmax, costmax, minn, maxx, cost; | ^~~~ main.cpp:92:41: warning: 'imax' may be used uninitialized [-Wmaybe-uninitialized] 92 | fcout << costmax << '\n' << imax << ' ' << jmax << ' ' << kmax; | ^~~ main.cpp:11:12: note: 'imax' was declared here 11 | int n, imax, jmax, kmax, costmax, minn, maxx, cost; | ^~~~ main.cpp:32:20: warning: 'km' may be used uninitialized [-Wmaybe-uninitialized] 32 | int costm, im, km; | ^~ main.cpp:83:18: warning: 'im' may be used uninitialized [-Wmaybe-uninitialized] 83 | else if (im == imax) | ^~ main.cpp:32:16: note: 'im' was declared here 32 | int costm, im, km; | ^~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK10
20ms303kbOK10
30ms303kbOK10
40ms303kbOK10
50ms303kbOK10
69ms303kbOK10
719ms303kbOK10
824ms303kbOK10
924ms303kbOK10
1024ms303kbOK10
Punctaj total100

Ceva nu functioneaza?