Borderou de evaluare (job #3038792)

Utilizator alexddAlexandru Dima alexdd Data 27 martie 2023 19:28:59
Problema Telefon3 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 64

Raport evaluator

Compilare: main.cpp: In function 'std::pair<int, int> solve(int)': main.cpp:54:41: warning: 'mij2' may be used uninitialized [-Wmaybe-uninitialized] 54 | rez.second -= d[mij2]; | ~~~~~~^ main.cpp:41:33: note: 'mij2' was declared here 41 | int st2,dr2,mij2; | ^~~~ In file included from /usr/include/c++/12.2.1/bits/specfun.h:45, from /usr/include/c++/12.2.1/cmath:1935, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:41, from main.cpp:2: In function 'constexpr const _Tp& std::max(const _Tp&, const _Tp&) [with _Tp = int]', inlined from 'std::pair<int, int> solve(int)' at main.cpp:115:22: /usr/include/c++/12.2.1/bits/stl_algobase.h:259:15: warning: 'mij2' may be used uninitialized [-Wmaybe-uninitialized] 259 | if (__a < __b) | ~~~~^~~~~ main.cpp: In function 'std::pair<int, int> solve(int)': main.cpp:100:25: note: 'mij2' was declared here 100 | int st2,dr2,mij2; | ^~~~ main.cpp:80:53: warning: 'mij2' may be used uninitialized [-Wmaybe-uninitialized] 80 | if(mij>=2) aux = max(aux, d[mij2] - d[mij-b/r+1] - d[mij-b/r+2]); | ~~~~~~^ main.cpp:65:33: note: 'mij2' was declared here 65 | int st2,dr2,mij2; | ^~~~ main.cpp:33:20: warning: 'mij' may be used uninitialized [-Wmaybe-uninitialized] 33 | if(b/r - mij == 1) | ~~~~^~~~~ main.cpp:13:15: note: 'mij' was declared here 13 | int st,dr,mij; | ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbCorect!5
20ms303kbCorect!5
30ms303kbCorect!5
40ms303kbCorect!5
51ms303kbCorect!5
61ms303kbCorect!5
71ms303kbCorect!5
84ms557kbCorect!5
93ms303kbCorect!5
102ms303kbCorect!5
1119ms819kbPrima cerinta corecta!2
1284ms1318kbCorect!5
131ms303kbCorect!5
14104ms1417kbTime limit exceeded0
15104ms1916kbTime limit exceeded0
16104ms1974kbTime limit exceeded0
17104ms1912kbTime limit exceeded0
18104ms2052kbTime limit exceeded0
19104ms1921kbTime limit exceeded0
2069ms1605kbPrima cerinta corecta!2
Punctaj total64

Ceva nu functioneaza?