Borderou de evaluare (job #3181747)

Utilizator ioanabaduIoana Badu ioanabadu Data 7 decembrie 2023 20:33:04
Problema Concurs Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'bool comp(std::pair<int, int>, std::pair<int, int>)': main.cpp:68:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 68 | if (a.second == b.second) | ^ main.cpp: In function 'void buildLogs()': main.cpp:35:17: warning: iteration 32001 invokes undefined behavior [-Waggressive-loop-optimizations] 35 | logs[i] = logs[i/2] + 1; | ~~~~~~~~^~~~~~~~~~~~~~~ main.cpp:34:20: note: within this loop 34 | for (int i=1; i<=M_MAX; ++i) | ^ main.cpp: In function 'int main()': main.cpp:114:38: warning: 'b' may be used uninitialized [-Wmaybe-uninitialized] 114 | out << rez << ' ' << a << ' ' << b; | ^ main.cpp:100:21: note: 'b' was declared here 100 | int rez = 0, a, b, auxA, auxB; | ^ main.cpp:114:31: warning: 'a' may be used uninitialized [-Wmaybe-uninitialized] 114 | out << rez << ' ' << a << ' ' << b; | ^~~ main.cpp:100:18: note: 'a' was declared here 100 | int rez = 0, a, b, auxA, auxB; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
123ms11386kbKilled by Signal 110
221ms11341kbKilled by Signal 110
323ms11382kbKilled by Signal 110
423ms11374kbKilled by Signal 110
521ms11337kbKilled by Signal 110
623ms11350kbKilled by Signal 110
721ms11362kbKilled by Signal 110
821ms11354kbKilled by Signal 110
923ms11370kbKilled by Signal 110
1021ms11345kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?