Borderou de evaluare (job #3181735)

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

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:112:38: warning: 'b' may be used uninitialized [-Wmaybe-uninitialized] 112 | out << rez << ' ' << a << ' ' << b; | ^ main.cpp:103:21: note: 'b' was declared here 103 | int rez = 0, a, b; | ^ main.cpp:112:31: warning: 'a' may be used uninitialized [-Wmaybe-uninitialized] 112 | out << rez << ' ' << a << ' ' << b; | ^~~ main.cpp:103:18: note: 'a' was declared here 103 | int rez = 0, a, b; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbIncorect0
20ms303kbIncorect0
30ms557kbOK10
4451ms9953kbTime limit exceeded0
53ms557kbIncorect0
6451ms10502kbTime limit exceeded0
7450ms11915kbTime limit exceeded0
8451ms11268kbTime limit exceeded0
9450ms11403kbTime limit exceeded0
10451ms11436kbTime limit exceeded0
Punctaj total10

Ceva nu functioneaza?